Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: test/runner/pub_serve_test.dart

Issue 1061903006: Avoid a platform-specific errno in pub_serve_test. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698