[flutter_tools] Fix bug in background_isolate_test.dart (#97170)

This commit is contained in:
Christopher Fujino
2022-01-25 09:55:10 -08:00
committed by GitHub
parent 55e8a2cd5b
commit 78de12b82f

View File

@@ -50,7 +50,7 @@ void main() {
project.updateTestIsolatePhrase(newBackgroundMessage);
await flutter.hotRestart();
await sawBackgroundMessage.future;
await sawNewBackgroundMessage.future;
// Wait a tiny amount of time in case we did not kill the background isolate.
await Future<void>.delayed(const Duration(milliseconds: 10));
await subscription.cancel();