Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Unified Diff: test/http_multi_server_test.dart

Issue 2950883002: Change '127.0.0.1' to 'localhost' to support both IPv4 and IPv6 envs. (Closed)
Patch Set: change pubspec version to dev Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/http_multi_server_test.dart
diff --git a/test/http_multi_server_test.dart b/test/http_multi_server_test.dart
index 9468cfe0df0748aa0426ac9d8a2805bdec855053..d638a483860476a5496c2d7d960ba12063ac17e0 100644
--- a/test/http_multi_server_test.dart
+++ b/test/http_multi_server_test.dart
@@ -18,9 +18,9 @@ void main() {
var subServer3;
setUp(() {
return Future.wait([
- HttpServer.bind("127.0.0.1", 0).then((server) => subServer1 = server),
- HttpServer.bind("127.0.0.1", 0).then((server) => subServer2 = server),
- HttpServer.bind("127.0.0.1", 0).then((server) => subServer3 = server)
+ HttpServer.bind("localhost", 0).then((server) => subServer1 = server),
+ HttpServer.bind("localhost", 0).then((server) => subServer2 = server),
+ HttpServer.bind("localhost", 0).then((server) => subServer3 = server)
]).then((servers) => multiServer = new HttpMultiServer(servers));
});
@@ -151,7 +151,7 @@ void main() {
completion(equals("got request")));
}
- if (await supportsIPv4) {
+ if (await supportsIPv6) {
expect(http.read("http://[::1]:${server.port}/"),
completion(equals("got request")));
}
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698