diff options
author | David Robillard <d@drobilla.net> | 2023-01-11 12:17:21 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-01-11 12:29:17 -0500 |
commit | 39ab78d4e6a624c66d1a59495fbf47a83f209b17 (patch) | |
tree | f1fcc3ed535fb012c35635efce4cd4551cedf33f /test | |
parent | 94fec62ba519e3e846e02327a3ece0e6bcaa016b (diff) | |
download | pugl-39ab78d4e6a624c66d1a59495fbf47a83f209b17.tar.gz pugl-39ab78d4e6a624c66d1a59495fbf47a83f209b17.tar.bz2 pugl-39ab78d4e6a624c66d1a59495fbf47a83f209b17.zip |
Relax timer test slightly and make it run for less time
Diffstat (limited to 'test')
-rw-r--r-- | test/test_timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |