Index: tests/isolate/pause_test.dart |
diff --git a/tests/isolate/pause_test.dart b/tests/isolate/pause_test.dart |
index 71691adfc8ca4257d6823afaee05e60541fdafec..376a4f22851a88adf8012a1d9c13802b3bdb8836 100644 |
--- a/tests/isolate/pause_test.dart |
+++ b/tests/isolate/pause_test.dart |
@@ -24,18 +24,19 @@ main(){ |
reply.handler = completer.complete; |
Isolate.spawn(isomain1, reply.sendPort).then((Isolate iso) { |
isolate = iso; |
- resume = isolate.pause(); |
return completer.future; |
}).then((echoPort) { |
// Isolate has been created, and first response has been returned. |
+ resume = isolate.pause(); |
echoPort.send(24); |
reply.handler = (v) { |
throw "RESPONSE WHILE PAUSED?!?"; |
}; |
- return new Future.delayed(const Duration(milliseconds: 250)); |
+ return new Future.delayed(const Duration(milliseconds: /*25*/0)); |
floitsch
2014/02/07 15:40:16
on purpose?
Lasse Reichstein Nielsen
2014/02/10 08:41:26
To make it run in d8 while testing.
Will remove no
|
}).then((_) { |
reply.handler = (v) { |
if (v != 24) throw "WRONG ANSWER!"; |
+ print("Success"); |
floitsch
2014/02/07 15:40:16
debug?
Lasse Reichstein Nielsen
2014/02/10 08:41:26
Done.
|
reply.close(); |
asyncEnd(); |
}; |