| Index: pkg/oauth2/test/authorization_code_grant_test.dart
|
| diff --git a/pkg/oauth2/test/authorization_code_grant_test.dart b/pkg/oauth2/test/authorization_code_grant_test.dart
|
| index 85c055b02c6e7144ed02c3a2d1e12a9c8542d6ca..044bc7f53ae7fbbabc8c7f4f310715c85b50e50c 100644
|
| --- a/pkg/oauth2/test/authorization_code_grant_test.dart
|
| +++ b/pkg/oauth2/test/authorization_code_grant_test.dart
|
| @@ -154,7 +154,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': 'access token',
|
| 'token_type': 'bearer',
|
| }), 200, headers: {'content-type': 'application/json'}));
|
| @@ -198,7 +198,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': 'access token',
|
| 'token_type': 'bearer',
|
| }), 200, headers: {'content-type': 'application/json'}));
|
|
|