mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-03 22:12:01 +09:00
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 <r@x>
This commit is contained in:
1 parent
795a156dd1
commit
2dca4afd14
1 file changed
+3
-1
@@ -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-'));
|
||||
|
||||
Reference in new issue
Block a user