Skip to content

Commit

Permalink
tests: video play/pause time test waits for less time
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Dec 12, 2023
1 parent 6715bae commit e6af895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/tests/graphics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -995,11 +995,11 @@ love.test.graphics.Video = function(test)

-- check playing / pausing / seeking states
video:play()
test:waitFrames(30) -- 1.5s ish
test:waitSeconds(0.25)
video:pause()
-- runners can be a bit funny and just not play anything sometimes
if not GITHUB_RUNNER then
test:assertEquals(1, math.ceil(video:tell()), 'check video playing for 1s')
test:assertRange(video:tell(), 0.2, 0.35, 'check video playing for 0.25s')
end
video:seek(0.2)
test:assertEquals(0.2, video:tell(), 'check video seeking')
Expand Down

0 comments on commit e6af895

Please sign in to comment.