Chromium Code Reviews| Index: tests/lib/async/run_zoned9_test.dart |
| diff --git a/tests/lib/async/run_zoned9_test.dart b/tests/lib/async/run_zoned9_test.dart |
| index aeaee5dfa41e24b4f82887d177a0087b7270dfe2..b855ab72964b9ebe1f9597f2f767f84b847f8018 100644 |
| --- a/tests/lib/async/run_zoned9_test.dart |
| +++ b/tests/lib/async/run_zoned9_test.dart |
| @@ -4,9 +4,10 @@ |
| import "package:expect/expect.dart"; |
| import 'dart:async'; |
| -import 'dart:isolate'; |
| +import 'package:async_helper/async_helper.dart'; |
| main() { |
| + asyncStart(); |
| // We keep a ReceivePort open until all tests are done. This way the VM will |
| // hang if the callbacks are not invoked and the test will time out. |
| var port = new ReceivePort(); |
|
kustermann
2013/08/28 10:34:01
No need for the receive port anymore.
|
| @@ -24,7 +25,7 @@ main() { |
| }, onError: (e) { |
| Expect.equals(0, e); |
| Expect.isTrue(sawInnerHandler); |
| - port.close(); |
| + asyncEnd(); |
| throw e; /// 01: runtime error |
| }); |
| } catch (e) { |