Chromium Code Reviews| Index: tests/lib/async/catch_errors_test.dart |
| diff --git a/tests/lib/async/catch_errors_test.dart b/tests/lib/async/catch_errors_test.dart |
| index f4e0eef4ad4edd8ea78700c3cd684d0188495bc1..adbe5ae0679b4d55609b27c715e4aed0b9e0ddc6 100644 |
| --- a/tests/lib/async/catch_errors_test.dart |
| +++ b/tests/lib/async/catch_errors_test.dart |
| @@ -9,14 +9,12 @@ import 'catch_errors.dart'; |
| main() { |
| asyncStart(); |
| - // Make sure `catchErrors` shuts down the error stream when the synchronous |
| - // operation is done and there isn't any asynchronous pending callback. |
| + |
| + // Make sure `catchErrors` does not execute the error callback. |
| catchErrors(() { |
|
Lasse Reichstein Nielsen
2013/09/23 14:24:12
catchErrors uses runZonedExperimental.
Could it b
floitsch
2013/09/23 17:12:07
Done.
|
| return 'allDone'; |
| - }).listen((x) { |
| - Expect.fail("Unexpected callback"); |
| - }, |
| - onDone: () { |
| - asyncEnd(); |
| - }); |
| + }).listen((x) { Expect.fail("Unexpected callback"); }); |
| + |
| + // Wait one cycle before shutting down the test. |
| + Timer.run(asyncEnd); |
| } |