From c6d36d24972dc7ce3e0386b85faed3b1c9e9f29b Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Mon, 13 May 2024 08:21:56 +0200 Subject: [PATCH] refactor: forgiving test --- apps/server/src/stores/__tests__/runtimeState.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/stores/__tests__/runtimeState.test.ts b/apps/server/src/stores/__tests__/runtimeState.test.ts index f5ef061ff..838d74387 100644 --- a/apps/server/src/stores/__tests__/runtimeState.test.ts +++ b/apps/server/src/stores/__tests__/runtimeState.test.ts @@ -168,7 +168,7 @@ describe('mutation on runtimeState', () => { load(event2, [event1, event2]); start(); newState = getState(); - expect(newState.runtime.actualStart).toBeCloseTo(firstStart, 2); + expect(newState.runtime.actualStart).toBeCloseTo(firstStart, 0); // we are over-under, the difference between the schedule and the actual start const delayBefore = event2.timeStart - newState.clock; expect(newState.runtime.offset).toBe(delayBefore);