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

Unified Diff: dart/tests/isolate/spawn_uri_missing_from_isolate_test.dart

Issue 306523002: Tweak isolate/spawn_uri_missing*test.dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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: dart/tests/isolate/spawn_uri_missing_from_isolate_test.dart
diff --git a/dart/tests/isolate/spawn_uri_missing_from_isolate_test.dart b/dart/tests/isolate/spawn_uri_missing_from_isolate_test.dart
index daefc46e3818cd5906b774565f465b1a7b0e8df9..c7551d2b08f55fdd60e84b3c5e08f396760daabd 100644
--- a/dart/tests/isolate/spawn_uri_missing_from_isolate_test.dart
+++ b/dart/tests/isolate/spawn_uri_missing_from_isolate_test.dart
@@ -30,13 +30,12 @@ main() {
ReceivePort port = new ReceivePort();
Isolate.spawn(isolate, port.sendPort);
Completer completer = new Completer();
- port.listen((message) {
+ port.first.then((message) {
if (message == SUCCESS) {
completer.complete(null);
} else {
completer.completeError(message);
}
- port.close();
});
asyncTest(() => completer.future);
« no previous file with comments | « no previous file | dart/tests/isolate/spawn_uri_missing_test.dart » ('j') | dart/tests/isolate/spawn_uri_missing_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698