| Index: tests/lib/async/catch_errors14_test.dart
|
| diff --git a/tests/lib/async/catch_errors14_test.dart b/tests/lib/async/catch_errors14_test.dart
|
| index ebf34a1a89e908d3b8ae8f44d685a6eb902afe81..bccc46445f9a4485e01f277eb71a7039190886b8 100644
|
| --- a/tests/lib/async/catch_errors14_test.dart
|
| +++ b/tests/lib/async/catch_errors14_test.dart
|
| @@ -2,15 +2,13 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| +import 'package:async_helper/async_helper.dart';
|
| import "package:expect/expect.dart";
|
| import 'dart:async';
|
| -import 'dart:isolate';
|
| import 'catch_errors.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();
|
| var events = [];
|
| // Test that periodic Timers are handled correctly by `catchErrors`.
|
| catchErrors(() {
|
| @@ -33,7 +31,7 @@ main() {
|
| "error 6",
|
| ],
|
| events);
|
| - port.close();
|
| + asyncEnd();
|
| });
|
| events.add("main exit");
|
| }
|
|
|