| Index: pkg/oauth2/test/utils.dart
|
| diff --git a/pkg/oauth2/test/utils.dart b/pkg/oauth2/test/utils.dart
|
| index b874cc4e7099347f8f1bad59c4dde0dcce4e65bc..9198c8025fda0aba977d7870e554e50828e62584 100644
|
| --- a/pkg/oauth2/test/utils.dart
|
| +++ b/pkg/oauth2/test/utils.dart
|
| @@ -38,7 +38,7 @@ class ExpectClient extends MockClient {
|
|
|
| Future<http.Response> _handleRequest(http.Request request) {
|
| if (_handlers.isEmpty) {
|
| - return new Future.immediate(new http.Response('not found', 404));
|
| + return new Future.value(new http.Response('not found', 404));
|
| } else {
|
| return _handlers.removeFirst()(request);
|
| }
|
|
|