Index: tests/standalone/io/https_client_test.dart |
diff --git a/tests/standalone/io/https_client_test.dart b/tests/standalone/io/https_client_test.dart |
index 6535e48add62f3f089392f4c0cff788e4025d919..847249fc135b8b96a947df4f69d93047a689f36f 100644 |
--- a/tests/standalone/io/https_client_test.dart |
+++ b/tests/standalone/io/https_client_test.dart |
@@ -12,7 +12,7 @@ void testGoogleUrl() { |
HttpClient client = new HttpClient(); |
void testUrl(String url) { |
- var requestUri = new Uri.fromString(url); |
+ var requestUri = Uri.parse(url); |
var conn = client.getUrl(requestUri); |
conn.onRequest = (HttpClientRequest request) { |
@@ -43,7 +43,7 @@ void testGoogleUrl() { |
void testBadHostName() { |
HttpClient client = new HttpClient(); |
HttpClientConnection connection = client.getUrl( |
- new Uri.fromString("https://some.bad.host.name.7654321/")); |
+ Uri.parse("https://some.bad.host.name.7654321/")); |
connection.onRequest = (HttpClientRequest request) { |
Expect.fail("Should not open a request on bad hostname"); |
}; |