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

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

Issue 15665005: Revert "Mark periodic4-test as flaky and add debug information." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/stream_periodic4_test.dart
diff --git a/tests/lib/async/stream_periodic4_test.dart b/tests/lib/async/stream_periodic4_test.dart
index 5b6eda314416fb67bd139387bdf7f88552c5cf66..779947bf4264461e950cc4b4ee571f3d5c8bf451 100644
--- a/tests/lib/async/stream_periodic4_test.dart
+++ b/tests/lib/async/stream_periodic4_test.dart
@@ -8,13 +8,7 @@ library dart.test.stream_from_iterable;
import "dart:async";
import '../../../pkg/unittest/lib/unittest.dart';
-int iteration = 0;
-
void runTest(period, maxElapsed, pauseDuration) {
- print("Iteration: $iteration");
- var myIteration = iteration;
- iteration++;
-
Function done = expectAsync0(() { });
Stopwatch watch = new Stopwatch()..start();
@@ -29,10 +23,8 @@ void runTest(period, maxElapsed, pauseDuration) {
expect(true, false);
} else {
subscription.cancel();
- print("Cancelling subscription of iteration: $myIteration");
// Call 'done' ourself, since it won't be invoked in the onDone handler.
runTest(period * 2, maxElapsed * 2, pauseDuration * 2);
- print("Invoking done of iteration inside listener: $myIteration");
done();
return;
}
@@ -46,10 +38,7 @@ void runTest(period, maxElapsed, pauseDuration) {
subscription.resume();
});
}
- }, onDone: () {
- print("Invoking done of iteration: $myIteration");
- done();
- });
+ }, onDone: done);
}
main() {
« no previous file with comments | « no previous file | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698