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

Unified Diff: tests/standalone/io/directory_list_pause_test.dart

Issue 17232003: Increase number of files created, to avoid flakyness on linux. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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/standalone/io/directory_list_pause_test.dart
diff --git a/tests/standalone/io/directory_list_pause_test.dart b/tests/standalone/io/directory_list_pause_test.dart
index 86ff1566d87a6979dbc1b0fb6c46840853505674..178f59f45e7e052768617634235e715f1e14e421 100644
--- a/tests/standalone/io/directory_list_pause_test.dart
+++ b/tests/standalone/io/directory_list_pause_test.dart
@@ -11,8 +11,8 @@ import "dart:isolate";
void testPauseList() {
var keepAlive = new ReceivePort();
new Directory("").createTemp().then((d) {
- // Linux reads 2K at a time.
- int total = 2 * 1024 + 1;
+ // Linux reads 2K at a time, so be sure to be >>.
+ int total = 4 * 1024 + 1;
for (int i = 0; i < total; i++) {
new File("${d.path}/$i").createSync();
}
@@ -32,7 +32,7 @@ void testPauseList() {
}
count++;
}, onDone: () {
- Expect.isTrue(count < total);
+ Expect.notEquals(total, count);
keepAlive.close();
d.delete().then((ignore) => keepAlive.close());
});
« 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