| 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..5ba8de2d6fb0b6c66c4241146e4f693b64f31f6c 100644
|
| --- a/tests/lib/async/run_zoned9_test.dart
|
| +++ b/tests/lib/async/run_zoned9_test.dart
|
| @@ -4,12 +4,10 @@
|
|
|
| import "package:expect/expect.dart";
|
| import 'dart:async';
|
| -import 'dart:isolate';
|
| +import 'package:async_helper/async_helper.dart';
|
|
|
| main() {
|
| - // 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();
|
| + asyncStart();
|
| // Ensure that `runZoned`'s onError handles synchronous errors but delegates
|
| // to the next runZonedExperimental when the handler returns false.
|
| bool sawInnerHandler = false;
|
| @@ -24,7 +22,7 @@ main() {
|
| }, onError: (e) {
|
| Expect.equals(0, e);
|
| Expect.isTrue(sawInnerHandler);
|
| - port.close();
|
| + asyncEnd();
|
| throw e; /// 01: runtime error
|
| });
|
| } catch (e) {
|
|
|