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

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

Issue 30663005: Don't use non-0 Timers for async tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/stream_subscription_cancel_test.dart
diff --git a/tests/lib/async/stream_subscription_cancel_test.dart b/tests/lib/async/stream_subscription_cancel_test.dart
index 3010bc1516d46e83f7fd90ef45595164d0e398e6..d6c6987545fcc04568eaed5f881e8c08d8a37f94 100644
--- a/tests/lib/async/stream_subscription_cancel_test.dart
+++ b/tests/lib/async/stream_subscription_cancel_test.dart
@@ -18,7 +18,7 @@ void main() {
expect(controller.stream.listen(null).cancel().then((_) => done),
completion(equals(true)));
- new Timer(const Duration(milliseconds: 10), () {
+ Timer.run(() {
done = true;
completer.complete();
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698