From fd34bdd636b5bb5b3317a900a9f0bcdb9c1fc193 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Thu, 22 Aug 2024 17:22:37 -0400 Subject: [PATCH] tests: relax condition in flaky playback position test --- server/tests/unit/room.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tests/unit/room.spec.ts b/server/tests/unit/room.spec.ts index 629a437bd..7399a3f82 100644 --- a/server/tests/unit/room.spec.ts +++ b/server/tests/unit/room.spec.ts @@ -61,7 +61,7 @@ describe("Room", () => { const expectedPlaybackPosition = room.realPlaybackPosition; const syncState = room.syncableState(); - expect(syncState.playbackPosition).toBeCloseTo(expectedPlaybackPosition); + expect(syncState.playbackPosition).toBeCloseTo(expectedPlaybackPosition, 1); }); describe("Room Requests", () => {