Index: tests/standalone/io/http_proxy_test.dart |
diff --git a/tests/standalone/io/http_proxy_test.dart b/tests/standalone/io/http_proxy_test.dart |
index 365ce2960d43fc237e0fc85b86a46e19279e58db..197b11a3dbd410969e8b8aea1968e39b748f5ef8 100644 |
--- a/tests/standalone/io/http_proxy_test.dart |
+++ b/tests/standalone/io/http_proxy_test.dart |
@@ -23,7 +23,7 @@ class Server { |
Future f = secure |
? HttpServer.bindSecure( |
"localhost", 0, certificateName: 'localhost_cert') |
- : HttpServer.bind("localhost"); |
+ : HttpServer.bind("localhost", 0); |
return f.then((s) { |
server = s; |
x.complete(this); |
@@ -97,7 +97,7 @@ class ProxyServer { |
Future<ProxyServer> start() { |
var x = new Completer(); |
- HttpServer.bind("localhost").then((s) { |
+ HttpServer.bind("localhost", 0).then((s) { |
server = s; |
x.complete(this); |
server.listen((HttpRequest request) { |