| Index: tests/lib/async/future_test.dart
|
| diff --git a/tests/lib/async/future_test.dart b/tests/lib/async/future_test.dart
|
| index df33697d7b2833d02e6b14b14418b1f6001b74a9..12cc53b92f5328aa12857463268718c12dd0e65b 100644
|
| --- a/tests/lib/async/future_test.dart
|
| +++ b/tests/lib/async/future_test.dart
|
| @@ -677,8 +677,13 @@ void testCompleteErrorWithCustomFuture() {
|
| }
|
|
|
| void testCompleteErrorWithNull() {
|
| + asyncStart();
|
| final completer = new Completer<int>();
|
| - Expect.throws(() => completer.completeError(null));
|
| + completer.future.catchError((e) {
|
| + Expect.isTrue(e is NullThrownError);
|
| + asyncEnd();
|
| + });
|
| + completer.completeError(null);
|
| }
|
|
|
| void testChainedFutureValue() {
|
|
|