Skip to content

Commit 217db04

Browse files
committed
fix(test): raise Windows timeout for CLI spawn smoke tests
Give version --help and status --json spawnSync cases 20s so late-suite Windows runners do not fail the 5s Bun default after a full suite.
1 parent f1231bb commit 217db04

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/cli-help.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe("CLI subcommand help", () => {
3535
expect(binResult.status).toBe(0);
3636
expect(binResult.stdout.trim()).toMatch(/^opencodex \d+\.\d+\.\d+/);
3737
expect(binResult.stdout.trim().split("\n")).toHaveLength(1);
38-
});
38+
}, { timeout: 20_000 });
3939

4040
test("help command routes to subcommand help", () => {
4141
const result = runCli(["help", "start"]);

tests/codex-plugins-doctor.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,5 +320,5 @@ describe("ocx status --json codexPlugins (spawned, read-only)", () => {
320320
rmSync(opencodexHome, { recursive: true, force: true });
321321
rmSync(codexHome, { recursive: true, force: true });
322322
}
323-
});
323+
}, { timeout: 20_000 });
324324
});

0 commit comments

Comments
 (0)