Index: tests/utils/recursive_import_test.dart |
diff --git a/tests/utils/recursive_import_test.dart b/tests/utils/recursive_import_test.dart |
index 15a09bee79c6975408876974bb19c00325eaf7e6..d4117077d852048e4a642bb613a1e8d567e05e76 100644 |
--- a/tests/utils/recursive_import_test.dart |
+++ b/tests/utils/recursive_import_test.dart |
@@ -61,7 +61,6 @@ main() {} |
main() { |
int count = 0; |
Future<String> provider(Uri uri) { |
- Completer<String> completer = new Completer<String>(); |
String source; |
if (uri.path.length > 100) { |
// Simulate an OS error. |
@@ -84,8 +83,7 @@ main() { |
} else { |
throw "unexpected URI $uri"; |
} |
- completer.complete(source); |
- return completer.future; |
+ return new Future.value(source); |
} |
int warningCount = 0; |