fix(delegate-task): resolve timeout detection and config drift in sync poller
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
declare const require: (name: string) => any
|
||||
const { describe, expect, test } = require("bun:test")
|
||||
import { __resetTimingConfig, __setTimingConfig, getDefaultSyncPollTimeoutMs } from "./timing"
|
||||
|
||||
describe("timing sync poll timeout defaults", () => {
|
||||
test("default sync timeout accessor follows MAX_POLL_TIME_MS config", () => {
|
||||
// #given
|
||||
__resetTimingConfig()
|
||||
|
||||
// #when
|
||||
__setTimingConfig({ MAX_POLL_TIME_MS: 123_456 })
|
||||
|
||||
// #then
|
||||
expect(getDefaultSyncPollTimeoutMs()).toBe(123_456)
|
||||
|
||||
__resetTimingConfig()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user