Index: tests/isolate/static_function_test.dart |
diff --git a/tests/isolate/static_function_test.dart b/tests/isolate/static_function_test.dart |
index 28e06b477ba2be05aeca889a06053cd8181de20f..130c07b2a0012a547b34100fab8e7618a3f2756a 100644 |
--- a/tests/isolate/static_function_test.dart |
+++ b/tests/isolate/static_function_test.dart |
@@ -63,7 +63,7 @@ void spawnTest(name, function, response) { |
test(name, () { |
ReceivePort r = new ReceivePort(); |
Isolate.spawn(function, r.sendPort); |
- r.listen(expectAsync1((v) { |
+ r.listen(expectAsync((v) { |
expect(v, response); |
r.close(); |
})); |
@@ -72,7 +72,7 @@ void spawnTest(name, function, response) { |
void functionFailTest(name, function) { |
test("throws on $name", () { |
- Isolate.spawn(function, null).catchError(expectAsync1((e) { |
+ Isolate.spawn(function, null).catchError(expectAsync((e) { |
/* do nothing */ |
})); |
}); |