From e6af895b0119cd1c5ea72ead8bd0fc80f262d457 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Tue, 12 Dec 2023 19:55:38 -0400 Subject: [PATCH] tests: video play/pause time test waits for less time --- testing/tests/graphics.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/tests/graphics.lua b/testing/tests/graphics.lua index 7ef5c4f37..3808430e7 100644 --- a/testing/tests/graphics.lua +++ b/testing/tests/graphics.lua @@ -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')