From 00a12feae6dee8a7f592f0455e3732f3cdd6dc5a Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 5 Apr 2012 09:47:59 +0200 Subject: timer: Increase the imprecision we accept in this test On a loaded server we might not be able to reach 10ms precision in the test configuration and this is not a high precision timer anyway. --- tests/timer/timer_test.c | 2 +- tests/timer/timer_test.ok | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/timer/timer_test.c b/tests/timer/timer_test.c index 3775151c..61079bd9 100644 --- a/tests/timer/timer_test.c +++ b/tests/timer/timer_test.c @@ -60,7 +60,7 @@ struct test_timer { /* timer imprecision that we accept for this test: 10 milliseconds. */ #define TIMER_PRES_SECS 0 -#define TIMER_PRES_USECS 10000 +#define TIMER_PRES_USECS 20000 static int timer_nsteps = MAIN_TIMER_NSTEPS; static unsigned int expired_timers = 0; diff --git a/tests/timer/timer_test.ok b/tests/timer/timer_test.ok index b4e0e118..1bb382ee 100644 --- a/tests/timer/timer_test.ok +++ b/tests/timer/timer_test.ok @@ -1,2 +1,2 @@ -Running timer test for 5 steps, accepting imprecision of 0.010000 seconds +Running timer test for 5 steps, accepting imprecision of 0.020000 seconds test over: added=31 expired=31 too_late=0 -- cgit v1.2.3