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:
Zachary Anderson
2024-08-06 14:48:50 -07:00
committed by GitHub
parent 521b0b327c
commit c4e19962bb
5 changed files with 39 additions and 37 deletions

View File

@@ -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;
}
}