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

Unified Diff: test/serve/web_socket/serve_directory_test.dart

Issue 1215833002: Use the new test runner. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 6 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
Index: test/serve/web_socket/serve_directory_test.dart
diff --git a/test/serve/web_socket/serve_directory_test.dart b/test/serve/web_socket/serve_directory_test.dart
index 148f74d79c7f96d2c20aedbbef16ab1cdb6039cf..e03cacf513b60ba9e849bd5116e2b049338cec08 100644
--- a/test/serve/web_socket/serve_directory_test.dart
+++ b/test/serve/web_socket/serve_directory_test.dart
@@ -11,7 +11,6 @@ import '../../test_pub.dart';
import '../utils.dart';
main() {
- initConfig();
integration("binds a directory to a new port", () {
d.dir(appPath, [
d.appPubspec(),
@@ -26,11 +25,13 @@ main() {
pubServe(args: ["web"]);
// Bind the new directory.
- expectWebSocketResult("serveDirectory", {"path": "test"}, {
- "url": matches(r"http://localhost:\d+")
- }).then((response) {
- var url = Uri.parse(response["url"]);
- registerServerPort("test", url.port);
+ schedule(() {
Bob Nystrom 2015/06/26 23:04:10 Use async/await?
+ return expectWebSocketResult("serveDirectory", {"path": "test"}, {
+ "url": matches(r"http://localhost:\d+")
+ }).then((response) {
+ var url = Uri.parse(response["url"]);
+ registerServerPort("test", url.port);
+ });
});
// It should be served now.

Powered by Google App Engine
This is Rietveld 408576698