| Index: tests/lib/async/futures_test.dart
|
| diff --git a/tests/lib/async/futures_test.dart b/tests/lib/async/futures_test.dart
|
| index 7ae1d7eaaf680b3cf7082d19979f338e2535f94e..0c3ad05aa35486eb0ab7b933c43600126885f77f 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((e) {
|
|
|