diff --git a/dwds/test/build_daemon_evaluate_test.dart b/dwds/test/build_daemon_evaluate_test.dart index b64bb30cb..7b6f98c10 100644 --- a/dwds/test/build_daemon_evaluate_test.dart +++ b/dwds/test/build_daemon_evaluate_test.dart @@ -503,10 +503,8 @@ void main() async { expect( error, - isA().having( - (instance) => instance.message, - 'message', - matches('CompilationError: Getter not found:.*typo'))); + isA().having((instance) => instance.message, + 'message', contains('CompilationError:'))); }); }); diff --git a/dwds/test/fixtures/context.dart b/dwds/test/fixtures/context.dart index 67fb96394..b3457aa9c 100644 --- a/dwds/test/fixtures/context.dart +++ b/dwds/test/fixtures/context.dart @@ -31,7 +31,6 @@ import 'logging.dart'; import 'server.dart'; import 'utilities.dart'; -final _batExt = Platform.isWindows ? '.bat' : ''; final _exeExt = Platform.isWindows ? '.exe' : ''; const isRPCError = TypeMatcher(); @@ -171,7 +170,7 @@ class TestContext { 'Could not start ChromeDriver. Is it installed?\nError: $e'); } - await Process.run('pub$_batExt', ['upgrade'], + await Process.run(dartPath, ['pub', 'upgrade'], workingDirectory: workingDirectory); ExpressionCompiler expressionCompiler; diff --git a/dwds/test/frontend_server_evaluate_test.dart b/dwds/test/frontend_server_evaluate_test.dart index 3efc1039b..f5225c1f0 100644 --- a/dwds/test/frontend_server_evaluate_test.dart +++ b/dwds/test/frontend_server_evaluate_test.dart @@ -410,7 +410,7 @@ void main() async { const TypeMatcher().having( (instance) => instance.message, 'message', - 'CompilationError: Getter not found: \'typo\'.\ntypo\n^^^^')); + contains('CompilationError:'))); }); }); });