tests: add some tolerance to video rewind test

It happens while the video is still playing, so the tell() query after the rewind isn't guaranteed to be 0.
This commit is contained in:
Sasha Szpakowski
2023-12-13 21:05:12 -04:00
parent 12b24c3cc7
commit b7e576efa8
+1 -1
View File
@@ -25,7 +25,7 @@ love.test.video.VideoStream = function(test)
video:seek(0.3)
test:assertRange(video:tell(), 0.3, 0.4, 'check seek/tell')
video:rewind()
test:assertEquals(0, video:tell(), 'check rewind')
test:assertRange(video:tell(), 0, 0.1, 'check rewind')
video:pause()
test:assertFalse(video:isPlaying(), 'check paused')