| Index: tests/standalone/io/file_write_as_test.dart
|
| diff --git a/tests/standalone/io/file_write_as_test.dart b/tests/standalone/io/file_write_as_test.dart
|
| index 3178bfe795eb8ecbcf6273c9355715477bc0d81c..1d40d9606e9bdb91758f0b62bde669fa37f3f984 100644
|
| --- a/tests/standalone/io/file_write_as_test.dart
|
| +++ b/tests/standalone/io/file_write_as_test.dart
|
| @@ -2,10 +2,11 @@
|
| // 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:io';
|
| -import 'dart:isolate';
|
| +
|
| +import "package:async_helper/async_helper.dart";
|
| +import "package:expect/expect.dart";
|
|
|
| testWriteAsBytesSync(dir) {
|
| var f = new File('${dir.path}/bytes_sync.txt');
|
| @@ -68,7 +69,7 @@ Future testWriteAsString(dir) {
|
| }
|
|
|
| main() {
|
| - var port = new ReceivePort();
|
| + asyncStart();
|
| var tempDir = new Directory('').createTempSync();
|
| testWriteAsBytesSync(tempDir);
|
| testWriteAsStringSync(tempDir);
|
| @@ -76,6 +77,6 @@ main() {
|
| return testWriteAsString(tempDir);
|
| }).then((_) {
|
| tempDir.deleteSync(recursive: true);
|
| - port.close();
|
| + asyncEnd();
|
| });
|
| }
|
|
|