| Index: tests/lib/async/catch_errors5_test.dart
|
| diff --git a/tests/lib/async/catch_errors5_test.dart b/tests/lib/async/catch_errors5_test.dart
|
| index 1d98f11ebbf4d6c448294ab250fa14f5329543e4..1bb8bba1374aa5d42fccd60f7f7bfbc6882a38df 100644
|
| --- a/tests/lib/async/catch_errors5_test.dart
|
| +++ b/tests/lib/async/catch_errors5_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 synchronous *and* asynchronous errors are caught by
|
| // `catchErrors`.
|
| @@ -28,7 +26,7 @@ main() {
|
| "future error",
|
| ],
|
| events);
|
| - port.close();
|
| + asyncEnd();
|
| });
|
| events.add("main exit");
|
| }
|
|
|