Chromium Code Reviews| 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); |