Index: tests/lib/async/stream_periodic3_test.dart |
diff --git a/tests/lib/async/stream_periodic3_test.dart b/tests/lib/async/stream_periodic3_test.dart |
index a82e556d98612bbe8b9184985a097ae81c3d1c7e..3e38ab5118de45eb2bd2fdcf3442a90e9c77de09 100644 |
--- a/tests/lib/async/stream_periodic3_test.dart |
+++ b/tests/lib/async/stream_periodic3_test.dart |
@@ -19,7 +19,7 @@ main() { |
Stopwatch watch = new Stopwatch()..start(); |
Stream stream = new Stream.periodic(const Duration(milliseconds: 1), |
(x) => x); |
- stream.take(10).listen((_) { }, onDone: expectAsync0(() { |
+ stream.take(10).listen((_) { }, onDone: expectAsync(() { |
int millis = watch.elapsedMilliseconds + safetyMargin; |
expect(millis, greaterThan(10)); |
})); |