Index: utils/tests/pub/oauth2_test.dart |
diff --git a/utils/tests/pub/oauth2_test.dart b/utils/tests/pub/oauth2_test.dart |
index 560e4a5b2972b50301cfafdb70b6a762fc6697fc..f6cde4f35fc506339b0f3aba678f0658a37b4d88 100644 |
--- a/utils/tests/pub/oauth2_test.dart |
+++ b/utils/tests/pub/oauth2_test.dart |
@@ -184,7 +184,7 @@ void authorizePub(ScheduledProcess pub, ScheduledServer server, |
.firstMatch(line); |
expect(match, isNotNull); |
- var redirectUrl = new Uri.fromString(decodeUriComponent(match.group(1))); |
+ var redirectUrl = Uri.parse(decodeUriComponent(match.group(1))); |
redirectUrl = addQueryParameters(redirectUrl, {'code': 'access code'}); |
return (new http.Request('GET', redirectUrl)..followRedirects = false) |
.send(); |