Up the allowance for time difference in GetTimeOfDayClock_test spin test. #87

This commit is contained in:
Penn, John M 047828115 2021-08-02 12:25:31 -05:00
parent 93b683540d
commit 0825b32118

View File

@ -121,8 +121,8 @@ TEST_F(GetTimeOfDayClockTest, ClockSpin) {
// wall_clock_time() and the execution time of this test code. (J.Penn)
// We know that the time difference must be at least as long as the spin_time.
EXPECT_GE((timclk->wall_clock_time() - tim_curr), spin_time);
// But, it can't be much longer. Allow 2 micro-seconds to allow for code execution time.
EXPECT_LE((timclk->wall_clock_time() - tim_curr), spin_time+2);
// But, it can't be much longer. Allow 10 micro-seconds to allow for code execution time.
EXPECT_LE((timclk->wall_clock_time() - tim_curr), spin_time+10);
delete timclk;
}