Index: utils/tests/pub/validator/dependency_test.dart |
diff --git a/utils/tests/pub/validator/dependency_test.dart b/utils/tests/pub/validator/dependency_test.dart |
index de4d08e91626e0dc8590b5d5608e878a26dd1c4c..4001330aa9f665fc420fa3031b54fea463a370c1 100644 |
--- a/utils/tests/pub/validator/dependency_test.dart |
+++ b/utils/tests/pub/validator/dependency_test.dart |
@@ -38,9 +38,9 @@ setUpDependency(Map dep, {List<String> hostedVersions}) { |
expect(request.url.path, equals("/packages/foo.json")); |
if (hostedVersions == null) { |
- return new Future.immediate(new http.Response("not found", 404)); |
+ return new Future.value(new http.Response("not found", 404)); |
} else { |
- return new Future.immediate(new http.Response(json.stringify({ |
+ return new Future.value(new http.Response(json.stringify({ |
"name": "foo", |
"uploaders": ["nweiz@google.com"], |
"versions": hostedVersions |