[flutter_tools] Fix bug in background_isolate_test.dart (#97170)
This commit is contained in:
committed by
GitHub
parent
55e8a2cd5b
commit
78de12b82f
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user