Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: tests/standalone/io/windows_file_system_async_links_test.dart

Issue 23886004: Update dart:io tests to use asyncStart/asyncEnd (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/standalone/io/windows_file_system_async_links_test.dart
diff --git a/tests/standalone/io/windows_file_system_async_links_test.dart b/tests/standalone/io/windows_file_system_async_links_test.dart
index 5560776e0f846ea6e623df12626cca61f4a6c114..44fb229f9b93ef7f7f26648e2d919171924d3f1b 100644
--- a/tests/standalone/io/windows_file_system_async_links_test.dart
+++ b/tests/standalone/io/windows_file_system_async_links_test.dart
@@ -3,9 +3,10 @@
// BSD-style license that can be found in the LICENSE file.
import "dart:async";
-import 'package:expect/expect.dart';
import "dart:io";
-import "dart:isolate";
+
+import "package:async_helper/async_helper.dart";
+import "package:expect/expect.dart";
class FutureExpect {
@@ -99,7 +100,7 @@ Future testJunctionTypeDelete() {
main() {
// Links on other platforms are tested by file_system_[async_]links_test.
if (Platform.operatingSystem == 'windows') {
- ReceivePort keepAlive = new ReceivePort();
- testJunctionTypeDelete().then((_) => keepAlive.close());
+ asyncStart();
+ testJunctionTypeDelete().then((_) => asyncEnd());
}
}

Powered by Google App Engine
This is Rietveld 408576698