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 dead690f7c17d224af87e64ae416bd7d0bded57e..22be3cfa7f59c3e0799ae6b3de94ab53c8fa902a 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'})); |