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

Unified Diff: tests/isolate/spawn_function_test.dart

Issue 11028076: Fix timer tests: timer tests were not using expectAsync to wait for (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Mark some tests as flaky in FF Created 8 years, 2 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
« no previous file with comments | « tests/isolate/multiple_timer_test.dart ('k') | tests/isolate/timer_cancel1_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/spawn_function_test.dart
diff --git a/tests/isolate/spawn_function_test.dart b/tests/isolate/spawn_function_test.dart
index 704bdb55dff91c082eccc912b75ccec75300ab2f..ae47227a21304269658d5a62880369ff9e3d61f8 100644
--- a/tests/isolate/spawn_function_test.dart
+++ b/tests/isolate/spawn_function_test.dart
@@ -14,10 +14,10 @@ child() {
main() {
test('message - reply chain', () {
ReceivePort port = new ReceivePort();
- port.receive(expectAsync(msg, _) {
+ port.receive(expectAsync2((msg, _) {
port.close();
expect(msg, equals('re: hi'));
- });
+ }));
SendPort s = spawnFunction(child);
s.send('hi', port.toSendPort());
« no previous file with comments | « tests/isolate/multiple_timer_test.dart ('k') | tests/isolate/timer_cancel1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698