diff --git a/tests/music/mod.luau b/tests/music/mod.luau index 5dc59fa..79e8941 100644 --- a/tests/music/mod.luau +++ b/tests/music/mod.luau @@ -105,7 +105,7 @@ do local _, n = l:read(8000) total += n end - t:check(total == 240000 and l.duration == dec.duration, "loop plays past the end") + t:check(total == 240000 and math.abs(l.duration - dec.duration) < 0.01, "loop plays past the end") end -- the fuzz pass: decode, and a short render of whatever decodes