Index: tests/standalone/io/http_session_test.dart |
diff --git a/tests/standalone/io/http_session_test.dart b/tests/standalone/io/http_session_test.dart |
index 6c9d565e406c7aedfc9aaab0ced7119185af9aae..4b3472e6bbd0c232a33758606aaf4b2e72cd11cd 100644 |
--- a/tests/standalone/io/http_session_test.dart |
+++ b/tests/standalone/io/http_session_test.dart |
@@ -37,7 +37,7 @@ Future<String> connectGetSession( |
void testSessions(int sessionCount) { |
var client = new HttpClient(); |
- HttpServer.bind().then((server) { |
+ HttpServer.bind("127.0.0.1", 0).then((server) { |
var sessions = new Set(); |
server.listen((request) { |
sessions.add(request.session.id); |
@@ -67,7 +67,7 @@ void testSessions(int sessionCount) { |
void testTimeout(int sessionCount) { |
var client = new HttpClient(); |
- HttpServer.bind().then((server) { |
+ HttpServer.bind("127.0.0.1", 0).then((server) { |
server.sessionTimeout = 0; |
var timeouts = []; |
server.listen((request) { |
@@ -103,7 +103,7 @@ void testTimeout(int sessionCount) { |
} |
void testSessionsData() { |
- HttpServer.bind().then((server) { |
+ HttpServer.bind("127.0.0.1", 0).then((server) { |
bool firstHit = false; |
bool secondHit = false; |
server.listen((request) { |