From b46b07a5b7fdc52b207a6c644d1476a2db22c150 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 2 Oct 2016 11:23:26 +0100 Subject: [PATCH] Increase tolerance in comon timer tests. 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. --- test/common/testcommon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common/testcommon.cpp b/test/common/testcommon.cpp index fbdf8d9c2..4b4e54c8c 100644 --- a/test/common/testcommon.cpp +++ b/test/common/testcommon.cpp @@ -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());