| Index: utils/tests/pub/curl_client_test.dart
|
| diff --git a/utils/tests/pub/curl_client_test.dart b/utils/tests/pub/curl_client_test.dart
|
| index a5f9dea2747d719c462643eb82d0b3d17c53e765..ba57e21937838eb2d7062e02d6c694f7314b2a42 100644
|
| --- a/utils/tests/pub/curl_client_test.dart
|
| +++ b/utils/tests/pub/curl_client_test.dart
|
| @@ -52,10 +52,10 @@ String decodeString(List<int> bytes, Encoding encoding) {
|
| HttpServer _server;
|
|
|
| /// The URL for the current server instance.
|
| -Uri get serverUrl => new Uri.fromString('http://localhost:${_server.port}');
|
| +Uri get serverUrl => Uri.parse('http://localhost:${_server.port}');
|
|
|
| /// A dummy URL for constructing requests that won't be sent.
|
| -Uri get dummyUrl => new Uri.fromString('http://dartlang.org/');
|
| +Uri get dummyUrl => Uri.parse('http://dartlang.org/');
|
|
|
| /// Starts a new HTTP server.
|
| void startServer() {
|
| @@ -70,7 +70,7 @@ void startServer() {
|
|
|
| _server.addRequestHandler((request) => request.path == '/loop',
|
| (request, response) {
|
| - var n = int.parse(new Uri.fromString(request.uri).query);
|
| + var n = int.parse(Uri.parse(request.uri).query);
|
| response.statusCode = 302;
|
| response.headers.set('location',
|
| serverUrl.resolve('/loop?${n + 1}').toString());
|
|
|