refactor: forgiving test

This commit is contained in:
Carlos Valente
2024-05-13 08:21:56 +02:00
committed by Carlos Valente
parent 2394eced93
commit c6d36d2497
@@ -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);