| Index: tests/lib/async/catch_errors28_test.dart
|
| diff --git a/tests/lib/async/catch_errors28_test.dart b/tests/lib/async/catch_errors28_test.dart
|
| index 09a208f52a5f62ce8695c537bb866626b667e042..1f13df48d7e756887d83602985720af2c72c4123 100644
|
| --- a/tests/lib/async/catch_errors28_test.dart
|
| +++ b/tests/lib/async/catch_errors28_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(() {
|
| @@ -29,7 +27,7 @@ main() {
|
| 1, 2, 3, 4, 5, 6,
|
| ],
|
| events);
|
| - port.close();
|
| + asyncEnd();
|
| });
|
| events.add("main exit");
|
| }
|
|
|