@@ -89,7 +89,7 @@ class TestContext {
89
89
'Could not start ChromeDriver. Is it installed?\n Error: $e ' );
90
90
}
91
91
92
- await Process .run ('pub$_batExt ' , ['get ' ],
92
+ await Process .run ('pub$_batExt ' , ['upgrade ' ],
93
93
workingDirectory: workingDirectory);
94
94
95
95
daemonClient = await connectClient (
@@ -152,27 +152,17 @@ class TestContext {
152
152
appConnection = await testServer.dwds.connectedApps.first;
153
153
if (enableDebugging) {
154
154
debugConnection = await testServer.dwds.debugConnection (appConnection);
155
- await debugConnection.vmService.streamListen ('Isolate' );
156
- await debugConnection.vmService.onIsolateEvent
157
- .firstWhere ((e) => e.kind == 'IsolateStart' );
158
155
webkitDebugger = WebkitDebugger (WipDebugger (tabConnection));
159
156
}
160
157
}
161
158
162
159
Future <Null > tearDown () async {
163
- /// A hack to make sure we wait until all scripts are loaded
164
- /// before exiting, otherwise we get async errors after the test
165
- /// and it makes them flaky.
166
- await debugConnection.vmService.getScripts (
167
- (await debugConnection.vmService.getVM ()).isolates.first.id);
168
- await debugConnection.close ();
169
-
160
+ await webDriver? .quit ();
161
+ chromeDriver? .kill ();
170
162
DartUri .currentDirectory = p.current;
171
163
_entryFile.writeAsStringSync (_entryContents);
172
164
await daemonClient? .close ();
173
165
await testServer? .stop ();
174
- await webDriver? .quit ();
175
- chromeDriver.kill ();
176
166
}
177
167
178
168
Future <void > changeInput () async {
0 commit comments