Skip to content

Commit

Permalink
Increase tolerance in comon timer tests.
Browse files Browse the repository at this point in the history
Fire timers slightly earlier, to avoid a possible source of random test
failures where for some reason the safe_sleep() returns before the timer
signal fires.
  • Loading branch information
qris committed Oct 2, 2016
1 parent 68eaecf commit b46b07a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/common/testcommon.cpp
Expand Up @@ -367,8 +367,8 @@ int test(int argc, const char *argv[])
TEST_THAT(!t3.HasExpired());

// Try both ways of resetting an existing timer.
t1 = Timer(1000, "t1a");
t2.Reset(2000);
t1 = Timer(900, "t1a");
t2.Reset(1900);
TEST_THAT(!t0.HasExpired());
TEST_THAT(!t1.HasExpired());
TEST_THAT(!t2.HasExpired());
Expand Down

0 comments on commit b46b07a

Please sign in to comment.