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

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

Issue 13718002: Make sleep test resilient to timer rounding issues (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/sleep_test.dart
diff --git a/tests/standalone/io/sleep_test.dart b/tests/standalone/io/sleep_test.dart
index be4d266a8629109434ac406812cc297eec609679..d953bf9f1a29536b9cc5652ebbb4380f91448304 100644
--- a/tests/standalone/io/sleep_test.dart
+++ b/tests/standalone/io/sleep_test.dart
@@ -9,7 +9,7 @@ test(int milliseconds) {
watch.start();
sleep(new Duration(milliseconds: milliseconds));
watch.stop();
- Expect.isTrue(watch.elapsedMilliseconds >= milliseconds);
+ Expect.isTrue(watch.elapsedMilliseconds + 1 >= milliseconds);
}
main() {
« 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