Index: tests/standalone/io/http_detach_socket_test.dart |
diff --git a/tests/standalone/io/http_detach_socket_test.dart b/tests/standalone/io/http_detach_socket_test.dart |
index 7d14b379d07a17b1045116acc56899ba04d5d1ae..2345079290793c01f80aba9f630d9e62b80e9ad2 100644 |
--- a/tests/standalone/io/http_detach_socket_test.dart |
+++ b/tests/standalone/io/http_detach_socket_test.dart |
@@ -12,7 +12,7 @@ import "dart:io"; |
import "dart:isolate"; |
void testServerDetachSocket() { |
- HttpServer.bind().then((server) { |
+ HttpServer.bind("127.0.0.1", 0).then((server) { |
server.listen((request) { |
var response = request.response; |
response.contentLength = 0; |
@@ -48,7 +48,7 @@ void testServerDetachSocket() { |
} |
void testBadServerDetachSocket() { |
- HttpServer.bind().then((server) { |
+ HttpServer.bind("127.0.0.1", 0).then((server) { |
server.listen((request) { |
var response = request.response; |
response.contentLength = 0; |
@@ -68,7 +68,7 @@ void testBadServerDetachSocket() { |
} |
void testClientDetachSocket() { |
- ServerSocket.bind().then((server) { |
+ ServerSocket.bind("127.0.0.1", 0).then((server) { |
server.listen((socket) { |
socket.write("HTTP/1.1 200 OK\r\n" |
"\r\n" |