Skip to content

Commit

Permalink
refactor: forviging test
Browse files Browse the repository at this point in the history
Allow a scenario where the operation execution happens in the next millisecond
  • Loading branch information
cpvalente committed May 12, 2024
1 parent 266a84e commit bc036bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/server/src/stores/__tests__/runtimeState.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ describe('mutation on runtimeState', () => {
load(event2, [event1, event2]);
start();
newState = getState();
expect(newState.runtime.actualStart).toBe(firstStart);
expect(newState.runtime.actualStart).toBeCloseTo(firstStart, 1);
// 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);
Expand Down

0 comments on commit bc036bd

Please sign in to comment.