From a6ae0ae10df129e7c5bec2676b46c788546d229c Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Tue, 12 Dec 2023 20:16:51 -0400 Subject: [PATCH] tests: more tolerance for sleep overshooting its time CI machines can take a while doing some other thing during a sleep. --- testing/tests/timer.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/tests/timer.lua b/testing/tests/timer.lua index 76ad05d0f..33de52447 100644 --- a/testing/tests/timer.lua +++ b/testing/tests/timer.lua @@ -33,7 +33,7 @@ love.test.timer.getTime = function(test) local starttime = love.timer.getTime() love.timer.sleep(0.1) local endtime = love.timer.getTime() - starttime - test:assertRange(endtime, 0.05, 0.15, 'check 0.1s passes') + test:assertRange(endtime, 0.05, 1, 'check 0.1s passes') end @@ -41,7 +41,7 @@ end love.test.timer.sleep = function(test) local starttime = love.timer.getTime() love.timer.sleep(0.1) - test:assertRange(love.timer.getTime() - starttime, 0.05, 0.15, 'check 0.1s passes') + test:assertRange(love.timer.getTime() - starttime, 0.05, 1, 'check 0.1s passes') end