Skip to content

Commit eb0923e

Browse files
committed
fix(test): give the contended restore its real production wait budget
The case waits out a 5s SQLite busy timeout twice plus the retry delay -- about 11s of deliberate waiting -- so a 15s CLI watchdog had almost no margin and fired on a loaded macOS runner (dev run 31105071651). The 45s test timeout still bounds the case.
1 parent 38d3834 commit eb0923e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎tests/codex-composed-acceptance.test.ts‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,13 @@ describe("WP13 composed toggle acceptance", () => {
477477
`], { cwd: repoRoot, env: fx.env(), stdout: "pipe", stderr: "pipe" });
478478
fx.children.push(holder);
479479
await waitFor(() => existsSync(held) ? true : null, "history BEGIN IMMEDIATE");
480-
const blocked = await fx.runCli(["restore", "--json"], fx.homeA, fx.userprofileA, 15_000);
480+
// The contended restore deliberately waits out PRODUCTION's retry budget:
481+
// a 5 s SQLite busy timeout per attempt, two attempts, plus the delay
482+
// between them — ~11 s of intentional waiting before it can report `busy`.
483+
// A 15 s watchdog left almost no margin and fired on a loaded macOS runner
484+
// (dev CI run 31105071651). Give the wait its budget plus real headroom;
485+
// the case's own 45 s test timeout still bounds it.
486+
const blocked = await fx.runCli(["restore", "--json"], fx.homeA, fx.userprofileA, 30_000);
481487
expect(blocked.exitCode).toBe(1);
482488
const envelope = JSON.parse(blocked.stdout) as { success: boolean; artifacts: { history: { state: string; reason?: string } } };
483489
expect(envelope).toMatchObject({ success: false, artifacts: { history: { state: "failed", reason: "busy" } } });

0 commit comments

Comments
 (0)