Index: test/runner/pub_serve_test.dart |
diff --git a/test/runner/pub_serve_test.dart b/test/runner/pub_serve_test.dart |
index 3ad260c7dcdb4b96aea5026353005222b69cfa0c..a3772f60485a29e553da0d3ab43986b57a9901f3 100644 |
--- a/test/runner/pub_serve_test.dart |
+++ b/test/runner/pub_serve_test.dart |
@@ -228,10 +228,10 @@ Make sure "pub serve" is running. |
test("gracefully handles pub serve not running for browser tests", () { |
var result = runUnittest(['--pub-serve=54321', '-p', 'chrome'], |
workingDirectory: _sandbox); |
- expect(result.stderr, equals(''' |
-Failed to load "test/my_test.dart": |
-Error getting http://localhost:54321/my_test.browser_test.dart.js: Connection refused (errno 111) |
-Make sure "pub serve" is running. |
+ expect(result.stderr, matches(r''' |
+Failed to load "test/my_test\.dart": |
+Error getting http://localhost:54321/my_test\.browser_test.dart\.js: Connection refused \(errno \d+\) |
+Make sure "pub serve" is running\. |
''')); |
expect(result.exitCode, equals(exit_codes.data)); |
}); |