mirror of
https://github.com/stablyai/orca.git
synced 2026-09-28 00:02:41 +00:00
test(relay): align sweep jitter expectation with polling budget
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user