From 2dca4afd1463da7ed6ada4783d6e5faa613c4e32 Mon Sep 17 00:00:00 2001 From: rUv Date: Tue, 17 Nov 2026 15:14:56 -0500 Subject: [PATCH] test(cli): give doctor-json-cli its child-process budget under the root config (#5023) Main went red at 795a156dd (#4839): the first doctor-json-cli test cold-starts tsx in a spawnSync child (30 s budget) but timed out at 5.16 s, because the repo-root vitest config CI's Test Suite uses has no testTimeout (5 s default). #4839 added an 8-way parallel CLI test, so the runner is busier and the cold start crossed 5 s. Set a describe-level 45 s timeout. Test-only change. Co-authored-by: r --- v3/@claude-flow/cli/__tests__/doctor-json-cli.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/v3/@claude-flow/cli/__tests__/doctor-json-cli.test.ts b/v3/@claude-flow/cli/__tests__/doctor-json-cli.test.ts index 4312ff4791..dc73a54cc1 100644 --- a/v3/@claude-flow/cli/__tests__/doctor-json-cli.test.ts +++ b/v3/@claude-flow/cli/__tests__/doctor-json-cli.test.ts @@ -9,7 +9,9 @@ import { pathToFileURL } from 'node:url'; const require = createRequire(import.meta.url); const entry = new URL('../src/index.ts', import.meta.url).href; -describe('doctor JSON through CLI.run', () => { +// Each test cold-starts tsx in a child (spawnSync allows 30 s). The repo-root +// vitest config has no testTimeout, so give the tests the child budget plus slack. +describe('doctor JSON through CLI.run', { timeout: 45_000 }, () => { let project: string; beforeAll(() => { project = mkdtempSync(join(tmpdir(), 'doctor-json-cli-'));