Wait for main isolate to be ready in devtools test

This commit is contained in:
Simon Binder 2023-11-18 00:31:11 +01:00
parent 0b537b50c1
commit 8f5afafd3e
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 2 additions and 2 deletions

View File

@ -43,12 +43,12 @@ void main() {
});
await vmServiceListening.future;
vm = await vmServiceConnectUri('ws://localhost:$port/ws');
await databaseOpened.future;
final state = await vm.getVM();
isolateId = state.isolates!.single.id!;
await databaseOpened.future;
});
tearDownAll(() async {