From 8f5afafd3e86da96dda5e36a48a4be38b510aef6 Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Sat, 18 Nov 2023 00:31:11 +0100 Subject: [PATCH] Wait for main isolate to be ready in devtools test --- drift/test/integration_tests/devtools/devtools_test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drift/test/integration_tests/devtools/devtools_test.dart b/drift/test/integration_tests/devtools/devtools_test.dart index b198ce1e..46056af2 100644 --- a/drift/test/integration_tests/devtools/devtools_test.dart +++ b/drift/test/integration_tests/devtools/devtools_test.dart @@ -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 {