[driver] wait for the isolate to enter pause on start

This commit is contained in:
Yegor Jbanov
2016-03-02 15:58:01 -08:00
parent 3d9e70ea27
commit 44d7a577e0
2 changed files with 16 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ main() {
mockIsolate = new MockIsolate();
when(mockClient.getVM()).thenReturn(mockVM);
when(mockVM.isolates).thenReturn([mockIsolate]);
when(mockIsolate.load()).thenReturn(mockIsolate);
when(mockIsolate.loadRunnable()).thenReturn(mockIsolate);
when(mockIsolate.invokeExtension(any, any))
.thenReturn(new Future.value({'status': 'ok'}));
vmServiceConnectFunction = (_) => new Future.value(mockClient);