| Index: tests/lib/async/catch_errors18_test.dart
|
| diff --git a/tests/lib/async/catch_errors18_test.dart b/tests/lib/async/catch_errors18_test.dart
|
| index 33e60ab03a63215305f60acd1ed71be91bf214b3..5d04a57d75e10120fbdd933aff1306419d5f5d9d 100644
|
| --- a/tests/lib/async/catch_errors18_test.dart
|
| +++ b/tests/lib/async/catch_errors18_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 = [];
|
| Stream stream = new Stream.periodic(const Duration(milliseconds: 20),
|
| (x) => x);
|
| @@ -28,6 +26,6 @@ main() {
|
| }).listen((x) { events.add("outer: $x"); },
|
| onDone: () {
|
| Expect.listEquals([0, 1, 2, 3, 4, "cancel"], events);
|
| - port.close();
|
| + asyncEnd();
|
| });
|
| }
|
|
|