| Index: tests/lib/async/catch_errors2_test.dart
|
| diff --git a/tests/lib/async/catch_errors2_test.dart b/tests/lib/async/catch_errors2_test.dart
|
| index 18fefaf6d82d90f4c9b6c5c6bd62feda3073a927..4c0d77c88de50e33022bc5b37bc65bbc42bed39b 100644
|
| --- a/tests/lib/async/catch_errors2_test.dart
|
| +++ b/tests/lib/async/catch_errors2_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();
|
| bool futureWasExecuted = false;
|
| // Make sure that `catchErrors` only closes the error stream when the inner
|
| // futures are done.
|
| @@ -24,6 +22,6 @@ main() {
|
| },
|
| onDone: () {
|
| Expect.isTrue(futureWasExecuted);
|
| - port.close();
|
| + asyncEnd();
|
| });
|
| }
|
|
|