Skip to content

Commit

Permalink
tests: sleep for a shorter time
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Dec 12, 2023
1 parent 4b9f4f7 commit e413f0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/tests/timer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ end
-- love.timer.sleep
love.test.timer.sleep = function(test)
local starttime = love.timer.getTime()
love.timer.sleep(1)
test:assertRange(love.timer.getTime() - starttime, 1, 2, 'check 1s passes')
love.timer.sleep(0.1)
test:assertRange(love.timer.getTime() - starttime, 0.05, 0.15, 'check 0.1s passes')
end


Expand Down

0 comments on commit e413f0c

Please sign in to comment.