Increase epsilon to 10ms; at 2ms the test is flaky
diff --git a/test/clock_test.dart b/test/clock_test.dart
index 495f74d..78f7ba1 100644
--- a/test/clock_test.dart
+++ b/test/clock_test.dart
@@ -39,8 +39,8 @@
// This test may be flaky on certain systems. I ran it over 10 million
// cycles on my machine without any failures, but that's no guarantee.
test("should be close enough to system clock", () {
- // I picked 2ms because 1ms was starting to get flaky.
- var epsilon = 2;
+ // At 10ms the test doesn't seem to be flaky.
+ var epsilon = 10;
expect(new DateTime.now().difference(
new Clock().now()).inMilliseconds.abs(),
lessThan(epsilon));