Index: tests/lib/async/futures_test.dart |
diff --git a/tests/lib/async/futures_test.dart b/tests/lib/async/futures_test.dart |
index 9dc9b1c26998fdf1b44a32d581d78ba5f7362053..446d93b17fe2f2403fadd76a249ff6c779247eda 100644 |
--- a/tests/lib/async/futures_test.dart |
+++ b/tests/lib/async/futures_test.dart |
@@ -84,7 +84,7 @@ Future testForEach() { |
var seen = <int>[]; |
return Future.forEach([1, 2, 3, 4, 5], (n) { |
seen.add(n); |
- return new Future.immediate(null); |
+ return new Future.value(); |
}).then((_) => Expect.listEquals([1, 2, 3, 4, 5], seen)); |
} |
@@ -93,7 +93,7 @@ Future testForEachWithException() { |
return Future.forEach([1, 2, 3, 4, 5], (n) { |
if (n == 4) throw 'correct exception'; |
seen.add(n); |
- return new Future.immediate(null); |
+ return new Future.value(); |
}).then((_) { |
throw 'incorrect exception'; |
}).catchError((error) { |