Skip to content

Commit 3e95ba3

Browse files
committed
test(storage): raise cleanup suite timeout for Windows CI load
The preview route test was failing at Bun's 5s default under runner contention while siblings already used 20s.
1 parent 7586a22 commit 3e95ba3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/api-storage-cleanup.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { afterEach, beforeEach, describe, expect, test } from "bun:test";
1+
import { afterEach, beforeEach, describe, expect, setDefaultTimeout, test } from "bun:test";
22
import { managementFetch as fetch } from "./helpers/management-auth";
33
import { Database } from "bun:sqlite";
44
import { existsSync, mkdirSync, mkdtempSync, rmSync, utimesSync, writeFileSync } from "node:fs";
@@ -9,6 +9,10 @@ import { startServer } from "../src/server";
99
import type { OcxConfig } from "../src/types";
1010
import { installIsolatedCodexHome, type IsolatedCodexHome } from "./helpers/isolated-codex-home";
1111

12+
// Windows CI under load can spend >5s just binding the proxy + previewing cleanup;
13+
// Bun's default test budget then fails the suite before the assertion runs.
14+
setDefaultTimeout(20_000);
15+
1216
let testDir = "";
1317
let previousHome: string | undefined;
1418
let isolatedCodexHome: IsolatedCodexHome | null = null;

0 commit comments

Comments
 (0)