test(relay): align sweep jitter expectation with polling budget

This commit is contained in:
Jinwoo-H
2026-09-11 23:55:15 -04:00
parent 865c930ebe
commit e638d3df97
@@ -19,7 +19,7 @@ describe('sweep schedule jitter', () => {
expect(SWEEP_JITTER_FRACTION).toBeGreaterThan(0)
})
it('jitters the regional rehome dispatch tick, which every director runs each second', () => {
it('jitters the six-second regional rehome dispatch tick across directors', () => {
const timers: number[] = []
const setIntervalSpy = vi
.spyOn(globalThis, 'setInterval')
@@ -42,7 +42,7 @@ describe('sweep schedule jitter', () => {
setIntervalSpy.mockRestore()
}
expect(timers).toEqual([1_100])
expect(timers).toEqual([6_600])
})
// Why: index.ts boots a server on import, so its wiring can only be read.