| Index: tests/lib/async/catch_errors6_test.dart
|
| diff --git a/tests/lib/async/catch_errors6_test.dart b/tests/lib/async/catch_errors6_test.dart
|
| index 58c4f742a4a3b3f4c787493fbff03a4dab0eddf3..48f6c305d21d6a4a69e47599f50afb324d3bd40b 100644
|
| --- a/tests/lib/async/catch_errors6_test.dart
|
| +++ b/tests/lib/async/catch_errors6_test.dart
|
| @@ -13,15 +13,16 @@ main() {
|
| var errorHandlerOrDoneHasBeenExecuted = false;
|
| // Test that `catchErrors` doesn't shut down if a future is never completed.
|
| catchErrors(() {
|
| - completer.future.then((x) { Expect.fail("should not be executed"); });
|
| - }).listen((x) {
|
| - errorHandlerOrDoneHasBeenExecuted = true;
|
| - Expect.fail("should not be executed (listen)");
|
| - },
|
| - onDone: () {
|
| - errorHandlerOrDoneHasBeenExecuted = true;
|
| - Expect.fail("should not be executed (onDone)");
|
| + completer.future.then((x) {
|
| + Expect.fail("should not be executed");
|
| });
|
| + }).listen((x) {
|
| + errorHandlerOrDoneHasBeenExecuted = true;
|
| + Expect.fail("should not be executed (listen)");
|
| + }, onDone: () {
|
| + errorHandlerOrDoneHasBeenExecuted = true;
|
| + Expect.fail("should not be executed (onDone)");
|
| + });
|
| Timer.run(() {
|
| Expect.isFalse(errorHandlerOrDoneHasBeenExecuted);
|
| asyncEnd();
|
|
|