Fix Linux_android_emu tests late initialization errors (#152932)
This does not fix the issue underlying https://github.com/flutter/flutter/issues/152684, but may prevent `adb logcat` from ending before we've captured the logs that explain why the app or emulator are potentially crashing. Fixes Fixes https://github.com/flutter/flutter/issues/152899
This commit is contained in:
@@ -109,8 +109,10 @@ class VMServiceFlutterDriver extends FlutterDriver {
|
||||
while (true) {
|
||||
final vms.Isolate isolate = await client.getIsolate(ref.id!);
|
||||
if (isolate.pauseEvent!.kind == vms.EventKind.kNone) {
|
||||
_log('Waiting for isolate ${ref.number} to be runnable.');
|
||||
await Future<void>.delayed(_kPauseBetweenIsolateRefresh);
|
||||
} else {
|
||||
_log('Isolate ${ref.number} is runnable.');
|
||||
return isolate;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user