From 69c7897d25e8382eaea99f7eb1c12abea604758c Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Thu, 22 Aug 2024 17:26:48 -0400 Subject: [PATCH] tests: relax condition in flaky playback position test (#1792) --- 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", () => {