From 39ab78d4e6a624c66d1a59495fbf47a83f209b17 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 11 Jan 2023 12:17:21 -0500 Subject: Relax timer test slightly and make it run for less time --- test/test_timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_timer.c') diff --git a/test/test_timer.c b/test/test_timer.c index 8400843..42a4140 100644 --- a/test/test_timer.c +++ b/test/test_timer.c @@ -27,7 +27,7 @@ static const double timeout = -1.0; #endif // Windows SetTimer has a maximum resolution of 10ms -static const double tolerance = 0.012; +static const double tolerance = 0.014; static const uintptr_t timerId = 1U; static const double timerPeriod = 1 / 60.0; @@ -127,7 +127,7 @@ main(int argc, char** argv) // Replace it with the one we want (to ensure timers are replaced) assert(!puglStartTimer(test.view, timerId, timerPeriod)); - puglUpdate(test.world, timerPeriod * 90.0); + puglUpdate(test.world, timerPeriod * 30.0); assert(test.numAlarms > 0); // Calculate the actual period of the timer -- cgit v1.2.1