| Index: tests/lib/async/catch_errors11_test.dart
|
| diff --git a/tests/lib/async/catch_errors11_test.dart b/tests/lib/async/catch_errors11_test.dart
|
| index 5375526172a50b91e7bb1cb5ca8f9861135be307..dff9b835ab739b57ec35387a76a1208734206c10 100644
|
| --- a/tests/lib/async/catch_errors11_test.dart
|
| +++ b/tests/lib/async/catch_errors11_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 `catchErrors` catches errors that are delayed by `Timer.run`.
|
| catchErrors(() {
|
| @@ -28,7 +26,7 @@ main() {
|
| "timer error",
|
| ],
|
| events);
|
| - port.close();
|
| + asyncEnd();
|
| });
|
| events.add("main exit");
|
| }
|
|
|