test(inspector): state the deadline bounds in the timeout case comment
The darwin parity lane runs `vitest run` without coverage instrumentation, so concurrent suite load, not instrumentation, is what pushed a Client Runtime round trip past the old 20 ms deadline. Name that load, keep the case-specific reason for the headroom, and record the two bounds the value must respect: CDP_CALL_TIMEOUT_MS and the default 5 s test budget. Drop the sentence that restated the file-header lane rule.
This commit is contained in:
1 parent
cec43a7001
commit
dd2fc67baf
1 file changed
+4
-4
@@ -371,10 +371,10 @@ describe('experimental Inspector real Worker', () => {
|
||||
})
|
||||
|
||||
it('cancels Client Runtime work when the Worker deadline expires', async () => {
|
||||
// The evaluation that must still succeed after the timeout shares this
|
||||
// deadline, so the deadline needs headroom above one Client Runtime round
|
||||
// trip under instrumented CI load. The never-settling promise below makes
|
||||
// the deadline fire regardless of its value.
|
||||
// The follow-up evaluation shares this deadline, so it must exceed one real
|
||||
// Client Runtime round trip under concurrent CI load and stay below
|
||||
// CDP_CALL_TIMEOUT_MS and the 5 s default test budget. The never-settling
|
||||
// promise makes the deadline fire regardless of its value.
|
||||
const deadlineMs = 1_000
|
||||
inspector = await startInspector({ port: 0, captureFetch: false, clientRuntimeTimeoutMs: deadlineMs })
|
||||
client = await InspectorClientFixture.start(inspector.endpoint.client, { label: 'Timeout Client' })
|
||||
|
||||
Reference in new issue
Block a user