Index: utils/tests/pub/test_pub.dart |
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart |
index 2ded719bb7a4f58d557eedb971ee80c9b2b4a8d4..caa7347482f200c00bca1b2adb5db27edfc295f7 100644 |
--- a/utils/tests/pub/test_pub.dart |
+++ b/utils/tests/pub/test_pub.dart |
@@ -1447,7 +1447,7 @@ class ScheduledServer { |
/// The base URL of the server, including its port. |
Future<Uri> get url => |
- port.then((p) => new Uri.fromString("http://localhost:$p")); |
+ port.then((p) => Uri.parse("http://localhost:$p")); |
/// Assert that the next request has the given [method] and [path], and pass |
/// it to [handler] to handle. If [handler] returns a [Future], wait until |
@@ -1460,7 +1460,7 @@ class ScheduledServer { |
handlerCompleter.complete((request, response) { |
expect(request.method, equals(method)); |
// TODO(nweiz): Use request.path once issue 7464 is fixed. |
- expect(new Uri.fromString(request.uri).path, equals(path)); |
+ expect(Uri.parse(request.uri).path, equals(path)); |
var future = handler(request, response); |
if (future == null) future = new Future.immediate(null); |