Unverified Commit 69921495 authored by Christopher Fujino's avatar Christopher Fujino Committed by GitHub

Revert "Fix hot restart flake" (#122855)

Landing revert on red to fix the build.
parent 6af58c76
......@@ -1019,10 +1019,7 @@ class FlutterVmService {
onError: (Object? error, StackTrace stackTrace) {
if (error is vm_service.SentinelException ||
error == null ||
error is vm_service.RPCError &&
(error.code == RPCErrorCodes.kServiceDisappeared ||
error.code == RPCErrorCodes.kInternalError &&
error.message.contains('Sentinel kind: Collected'))) {
(error is vm_service.RPCError && error.code == RPCErrorCodes.kServiceDisappeared)) {
return null;
}
return Future<vm_service.Isolate?>.error(error, stackTrace);
......
......@@ -45,20 +45,6 @@ Future<void> _testProject(HotReloadProject project, {String name = 'Default'}) a
await flutter.hotRestart();
});
testWithoutContext('$testName: hot restart works without error after delay', () async {
flutter.stdout.listen(printOnFailure);
await flutter.run(chrome: true, additionalCommandArgs: <String>['--verbose', '--web-renderer=html']);
await Future<void>.delayed(const Duration(milliseconds: 200));
await flutter.hotRestart();
});
testWithoutContext('$testName: multiple hot restarts work without error', () async {
flutter.stdout.listen(printOnFailure);
await flutter.run(chrome: true, additionalCommandArgs: <String>['--verbose', '--web-renderer=html']);
await Future<void>.delayed(const Duration(milliseconds: 200));
await Future.wait(<Future<void>>[ flutter.hotRestart(), flutter.hotRestart()]);
});
testWithoutContext('$testName: newly added code executes during hot restart', () async {
final Completer<void> completer = Completer<void>();
final StreamSubscription<String> subscription = flutter.stdout.listen((String line) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment