| Index: tests/lib/async/catch_errors2_test.dart
|
| diff --git a/tests/lib/async/catch_errors2_test.dart b/tests/lib/async/catch_errors2_test.dart
|
| index 4c0d77c88de50e33022bc5b37bc65bbc42bed39b..bdc0c32d03301f97271be4848983b3c90a6934cd 100644
|
| --- a/tests/lib/async/catch_errors2_test.dart
|
| +++ b/tests/lib/async/catch_errors2_test.dart
|
| @@ -10,10 +10,11 @@ import 'catch_errors.dart';
|
| main() {
|
| asyncStart();
|
| bool futureWasExecuted = false;
|
| - // Make sure that `catchErrors` only closes the error stream when the inner
|
| - // futures are done.
|
| + Future done;
|
| +
|
| + // Error streams never close.
|
| catchErrors(() {
|
| - new Future(() {
|
| + done = new Future(() {
|
| futureWasExecuted = true;
|
| });
|
| return 'allDone';
|
| @@ -21,7 +22,8 @@ main() {
|
| Expect.fail("Unexpected callback");
|
| },
|
| onDone: () {
|
| - Expect.isTrue(futureWasExecuted);
|
| - asyncEnd();
|
| + Expect.fail("Unexpected callback");
|
| });
|
| +
|
| + done.whenComplete(asyncEnd);
|
| }
|
|
|