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

Unified Diff: runtime/observatory/tests/service/auth_token_test.dart

Issue 2515023002: Allow binding the vm service to IPv6 addresses. (Closed)
Patch Set: . Created 4 years, 1 month 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
Index: runtime/observatory/tests/service/auth_token_test.dart
diff --git a/runtime/observatory/tests/service/auth_token_test.dart b/runtime/observatory/tests/service/auth_token_test.dart
index 6d38fcaa310dd89577af4ee17985b72134f304f0..4dfee5982176175dad689bc327e23186381cfc11 100644
--- a/runtime/observatory/tests/service/auth_token_test.dart
+++ b/runtime/observatory/tests/service/auth_token_test.dart
@@ -17,14 +17,14 @@ Future<Null> testeeBefore() async {
ServiceProtocolInfo info = await Service.controlWebServer(enable: true);
expect(info.serverUri, isNotNull);
// Ensure that we have the auth token in the path segments.
- expect(info.serverUri.pathSegments.length, greaterThan(1));
+ expect(info.serverUri.pathSegments.length, greaterThan(0));
Cutch 2016/11/19 22:21:37 pathSegments has a length two here. so this should
rmacnak 2016/11/22 04:00:52 adjusted serverAddress to make this true again
// Sanity check the length of the auth token.
expect(info.serverUri.pathSegments[0].length, greaterThan(8));
// Try connecting to the server without the auth token, it should throw
// an exception.
var port = info.serverUri.port;
- var url = Uri.parse('http://127.0.0.1:$port');
+ var url = Uri.parse('http://localhost:$port');
var httpClient = new io.HttpClient();
try {
var request = await httpClient.getUrl(url);
« no previous file with comments | « runtime/observatory/tests/service/auth_token1_test.dart ('k') | runtime/observatory/tests/service/test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698