Skip to content
This repository was archived by the owner on Jan 26, 2021. It is now read-only.

Commit b4b93c8

Browse files
committed
Pass a Uri to package:http APIs
Prepare for dart-lang/http#375
1 parent e4de8fe commit b4b93c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/oauth2_flows/metadata_server_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ main() {
9595
var flow = new MetadataServerAuthorizationFlow(mockClient(
9696
expectAsync1((request) {
9797
if (requestNr++ == 0)
98-
return transportFailure.get('http://failure');
98+
return transportFailure.get(Uri.http('failure', ''));
9999
else
100100
return successfulScopes(request);
101101
}, count: 2),
@@ -110,7 +110,7 @@ main() {
110110
if (requestNr++ == 0)
111111
return successfulAccessToken(request);
112112
else
113-
return transportFailure.get('http://failure');
113+
return transportFailure.get(Uri.http('failure', ''));
114114
}, count: 2),
115115
expectClose: false));
116116
expect(flow.run(), throwsA(isTransportException));

0 commit comments

Comments
 (0)