Index: tests/standalone/io/socket_port_test.dart |
diff --git a/tests/standalone/io/socket_port_test.dart b/tests/standalone/io/socket_port_test.dart |
index d3c01799f49a0bb3dd087fd28bd9dc75ddbb4c4e..d9c75d705454de9e42caa53b8c8f27c06c98fa75 100644 |
--- a/tests/standalone/io/socket_port_test.dart |
+++ b/tests/standalone/io/socket_port_test.dart |
@@ -6,7 +6,7 @@ import "package:expect/expect.dart"; |
import "dart:io"; |
void testPort() { |
- ServerSocket.bind().then((server) { |
+ ServerSocket.bind("127.0.0.1", 0).then((server) { |
Socket.connect("127.0.0.1", server.port).then((clientSocket) { |
server.listen((Socket socket) { |
Expect.equals(socket.port, server.port); |