From dd2fc67bafb96553217cef1e01dc301c1ea12894 Mon Sep 17 00:00:00 2001 From: dsh-ci-bot Date: Thu, 12 Nov 2026 01:41:37 +0800 Subject: [PATCH] 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. --- .../experimental/inspector/tests/integration.host.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/experimental/inspector/tests/integration.host.spec.ts b/packages/experimental/inspector/tests/integration.host.spec.ts index 6713256e26..fcd91a3f9b 100644 --- a/packages/experimental/inspector/tests/integration.host.spec.ts +++ b/packages/experimental/inspector/tests/integration.host.spec.ts @@ -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' })