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

Unified Diff: tests/language/async_star_test.dart

Issue 1000083003: Remove a test that is incredibly flaky on some platforms. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
« 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/language/async_star_test.dart
diff --git a/tests/language/async_star_test.dart b/tests/language/async_star_test.dart
index f2f75888dca2de9e2bb46ea1fe13d7bbf65d362a..94a75234dcb9251e3bbf10ea501664142a1ca4a8 100644
--- a/tests/language/async_star_test.dart
+++ b/tests/language/async_star_test.dart
@@ -704,44 +704,6 @@ main() {
});
});
- test("multiple pauses, cancel while paused", () {
- var list = [];
- f() async* {
- int i = 0;
- while (true) {
- yield i;
- list.add(i);
- i++;
- await null; // extra pause for good measure.
- }
- }
- int expected = 0;
- var done = new Completer();
- var sub;
- sub = f().listen((v) {
- expect(v, equals(expected++));
- if (v == 5) {
- scheduleMicrotask(() {
- sub.pause();
- sub.resume();
- sub.pause();
- sub.resume();
- sub.pause();
- sub.resume();
- });
- } else if (v == 6) {
- sub.pause();
- new Timer(MS * 300, () {
- expect(list.length, lessThan(8));
- sub.cancel();
- done.complete();
- });
- }
- }, onDone: () {
- fail("Unexpected done");
- });
- });
-
test("canceling while paused at yield", () { /// 02: ok
var list = []; /// 02: continued
var sync = new Sync(); /// 02: continued
« 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