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

Unified Diff: tests/lib/async/stream_periodic_test.dart

Issue 218273002: Upgrading tests with unittest deprecations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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: tests/lib/async/stream_periodic_test.dart
diff --git a/tests/lib/async/stream_periodic_test.dart b/tests/lib/async/stream_periodic_test.dart
index 32359f6367434065c1647374b0cee633874b252f..379c689ebb56764329358985e8306474785dcbe1 100644
--- a/tests/lib/async/stream_periodic_test.dart
+++ b/tests/lib/async/stream_periodic_test.dart
@@ -13,7 +13,7 @@ main() {
Stream stream = new Stream.periodic(const Duration(milliseconds: 1));
int receivedCount = 0;
var subscription;
- subscription = stream.listen(expectAsync1((data) {
+ subscription = stream.listen(expectAsync((data) {
expect(data, isNull);
receivedCount++;
if (receivedCount == 5) subscription.cancel();

Powered by Google App Engine
This is Rietveld 408576698