Skip to content

Commit

Permalink
Wait for main isolate to be ready in devtools test
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Nov 17, 2023
1 parent 0b537b5 commit 8f5afaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drift/test/integration_tests/devtools/devtools_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8f5afaf

Please sign in to comment.