Index: pkg/oauth2/test/credentials_test.dart |
diff --git a/pkg/oauth2/test/credentials_test.dart b/pkg/oauth2/test/credentials_test.dart |
index 1ee5b7597335103c2dcedf220245f5985be55e9d..652d3940b5f01fe4521bc4410df4973abb67c179 100644 |
--- a/pkg/oauth2/test/credentials_test.dart |
+++ b/pkg/oauth2/test/credentials_test.dart |
@@ -76,7 +76,7 @@ void main() { |
"client_secret": "secret" |
})); |
- return new Future.immediate(new http.Response(JSON.stringify({ |
+ return new Future.value(new http.Response(JSON.stringify({ |
'access_token': 'new access token', |
'token_type': 'bearer', |
'refresh_token': 'new refresh token' |
@@ -106,7 +106,7 @@ void main() { |
"client_secret": "secret" |
})); |
- return new Future.immediate(new http.Response(JSON.stringify({ |
+ return new Future.value(new http.Response(JSON.stringify({ |
'access_token': 'new access token', |
'token_type': 'bearer' |
}), 200, headers: {'content-type': 'application/json'})); |