Skip to content

Commit fd93b79

Browse files
committed
Make more members non-late to avoid late initialization errors and move webRunner.stop up to restore working directory sooner
1 parent b1a80a9 commit fd93b79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dwds/test/fixtures/context.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ class TestContext {
9898
late Handler? _assetHandler;
9999

100100
Client get client => _client!;
101-
late Client? _client;
101+
Client? _client;
102102

103103
ExpressionCompilerService? ddcService;
104104

105105
int get port => _port!;
106106
late int? _port;
107107

108108
Directory get outputDir => _outputDir!;
109-
late Directory? _outputDir;
109+
Directory? _outputDir;
110110

111111
late WipConnection extensionConnection;
112112
late AppConnection appConnection;
@@ -538,12 +538,12 @@ class TestContext {
538538
}
539539

540540
Future<void> tearDown() async {
541+
await _webRunner?.stop();
541542
await _webDriver?.quit(closeSession: true);
542543
_chromeDriver?.kill();
543544
DartUri.currentDirectory = p.current;
544545
await _daemonClient?.close();
545546
await ddcService?.stop();
546-
await _webRunner?.stop();
547547
await _testServer?.stop();
548548
_client?.close();
549549
await _outputDir?.delete(recursive: true);

0 commit comments

Comments
 (0)