Index: tests/standalone/io/file_system_delete_test.dart |
diff --git a/tests/standalone/io/file_system_delete_test.dart b/tests/standalone/io/file_system_delete_test.dart |
index 84847bfb0d266b7661f645ace895f312c3bd7217..cf1d80165afe9dfe0bf28137742e079e836d84cc 100644 |
--- a/tests/standalone/io/file_system_delete_test.dart |
+++ b/tests/standalone/io/file_system_delete_test.dart |
@@ -7,7 +7,7 @@ import "dart:async"; |
import "dart:io"; |
Future throws(callback()) { |
- return new Future.immediate(null) |
+ return new Future.value() |
.then((_) => callback()) |
.then((_) { throw "Expected error"; }, |
onError: (_) {}); |