mirror of
https://github.com/cpvalente/ontime.git
synced 2026-07-26 10:38:55 +00:00
refactor: forviging test
Allow a scenario where the operation execution happens in the next millisecond
This commit is contained in:
committed by
Carlos Valente
parent
266a84e5d3
commit
bc036bdae7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user