Index: tests/standalone/io/http_body_test.dart |
diff --git a/tests/standalone/io/http_body_test.dart b/tests/standalone/io/http_body_test.dart |
index b0f5f7390119a06d967e668aa643336ffb5a71e3..b036da2fe2db7cf7ecef30d165ea2e0593f1df38 100644 |
--- a/tests/standalone/io/http_body_test.dart |
+++ b/tests/standalone/io/http_body_test.dart |
@@ -13,7 +13,7 @@ void testHttpClientResponseBody() { |
dynamic expectedBody, |
String type, |
[bool shouldFail = false]) { |
- HttpServer.bind().then((server) { |
+ HttpServer.bind("127.0.0.1", 0).then((server) { |
server.listen((request) { |
request.listen( |
(_) {}, |
@@ -91,7 +91,7 @@ void testHttpServerRequestBody() { |
dynamic expectedBody, |
String type, |
[bool shouldFail = false]) { |
- HttpServer.bind().then((server) { |
+ HttpServer.bind("127.0.0.1", 0).then((server) { |
server.transform(new HttpBodyHandler()) |
.listen((body) { |
if (shouldFail) Expect.fail("Error expected"); |