diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2021-02-19 18:06:36 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-02-19 18:06:36 +0000 |
commit | 18dd0731f6126aa0fa5ddc5c556129c3698ef366 (patch) | |
tree | 7034cd017019499e2f40b2b17fd08a1ace73484d /tests | |
parent | 8d6d795c281b1176e5b928cbfb47ac84b6fece16 (diff) | |
parent | 527b78d1943cc42bafb39107b8cc3504a6c075a4 (diff) |
Merge "Increase leniancy in an inherently flaky test."
Diffstat (limited to 'tests')
-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 93ba42645..7c2c890c6 100644 --- a/tests/time_test.cpp +++ b/tests/time_test.cpp @@ -851,11 +851,11 @@ TEST(time, clock_getres_unknown) { } TEST(time, clock) { - // clock(3) is hard to test, but a 1s sleep should cost less than 10ms. + // clock(3) is hard to test, but a 1s sleep should cost less than 20ms. clock_t t0 = clock(); sleep(1); clock_t t1 = clock(); - ASSERT_LT(t1 - t0, 10 * (CLOCKS_PER_SEC / 1000)); + ASSERT_LT(t1 - t0, 20 * (CLOCKS_PER_SEC / 1000)); } static pid_t GetInvalidPid() { |