| Index: tests/standalone/io/async_catch_errors_test.dart
|
| diff --git a/tests/standalone/io/async_catch_errors_test.dart b/tests/standalone/io/async_catch_errors_test.dart
|
| index 7107bf20ecf2f6712bb7d191801994036830aa47..d129c05c1371eacf58310218eae1d9f870d706d4 100644
|
| --- a/tests/standalone/io/async_catch_errors_test.dart
|
| +++ b/tests/standalone/io/async_catch_errors_test.dart
|
| @@ -2,11 +2,12 @@
|
| // 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:expect/expect.dart";
|
| import 'dart:async';
|
| -import 'dart:isolate';
|
| import 'dart:io';
|
|
|
| +import "package:async_helper/async_helper.dart";
|
| +import "package:expect/expect.dart";
|
| +
|
| var events = [];
|
|
|
| Future testSocketException() {
|
| @@ -38,11 +39,11 @@ Future testFileException() {
|
| 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 timeOutPort = new ReceivePort();
|
| + asyncStart();
|
| testSocketException()
|
| .then((_) => testFileException())
|
| .then((_) {
|
| - timeOutPort.close();
|
| + asyncEnd();
|
| Expect.listEquals(["SocketException", "FileException"],
|
| events);
|
| });
|
|
|