Index: tests/standalone/io/web_socket_test.dart |
diff --git a/tests/standalone/io/web_socket_test.dart b/tests/standalone/io/web_socket_test.dart |
index 5579e8f65af55110695941528b8a353ba67ccc64..40ca3b18884a66f6400497f4302cee4be49d70fd 100644 |
--- a/tests/standalone/io/web_socket_test.dart |
+++ b/tests/standalone/io/web_socket_test.dart |
@@ -15,6 +15,7 @@ import "dart:typed_data"; |
import "dart:uri"; |
const String CERT_NAME = 'localhost_cert'; |
+const String SERVER_ADDRESS = '127.0.0.1'; |
const String HOST_NAME = 'localhost'; |
/** |
@@ -26,11 +27,11 @@ class SecurityConfiguration { |
SecurityConfiguration({bool this.secure}); |
Future<HttpServer> createServer({int backlog: 0}) => |
- secure ? HttpServer.bindSecure(HOST_NAME, |
+ secure ? HttpServer.bindSecure(SERVER_ADDRESS, |
0, |
backlog: backlog, |
certificateName: CERT_NAME) |
- : HttpServer.bind(HOST_NAME, |
+ : HttpServer.bind(SERVER_ADDRESS, |
0, |
backlog); |