diff options
Diffstat (limited to 'tests/time_test.cpp')
-rw-r--r-- | tests/time_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/time_test.cpp b/tests/time_test.cpp index 4ec5976b4..50830ee1a 100644 --- a/tests/time_test.cpp +++ b/tests/time_test.cpp @@ -607,9 +607,9 @@ TEST(time, clock_gettime) { ts2.tv_nsec += NS_PER_S; } - // Should be less than (a very generous, to try to avoid flakiness) 1000000ns. + // To try to avoid flakiness we'll accept answers within 10,000,000ns (0.01s). ASSERT_EQ(0, ts2.tv_sec); - ASSERT_LT(ts2.tv_nsec, 1000000); + ASSERT_LT(ts2.tv_nsec, 10'000'000); } TEST(time, clock_gettime_CLOCK_REALTIME) { |