Skip to content

Commit 045fe42

Browse files
committed
test(storage): budget early cleanup SQLite setup on Windows CI
The oldest-first preview case timed out at Bun's 5s default under windows-latest load; siblings already use STORE_BUDGET_MS.
1 parent d2e9a87 commit 045fe42

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/storage-cleanup.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ describe("previewArchivedCleanup", () => {
220220
"archived_sessions/rollout-new.jsonl",
221221
]);
222222
expect(listed.some(c => c.relPath.includes("sessions/2026"))).toBe(false);
223-
});
223+
}, { timeout: STORE_BUDGET_MS });
224224

225225
test("percent selects oldest subset and includes digest", () => {
226226
home = buildHome();
@@ -236,7 +236,7 @@ describe("previewArchivedCleanup", () => {
236236
expect(preview.bytes).toBe(preview.candidates[0]!.bytes);
237237
expect(preview.digest).toBe(computePreviewDigest(preview.candidates, 50));
238238
expect(preview.digest).toMatch(/^[a-f0-9]{64}$/);
239-
});
239+
}, { timeout: STORE_BUDGET_MS });
240240

241241
test("treats .jsonl and .jsonl.zst as one logical rollout", () => {
242242
home = buildHome();
@@ -250,7 +250,7 @@ describe("previewArchivedCleanup", () => {
250250
"archived_sessions/rollout-old.jsonl.zst",
251251
]);
252252
expect(listed.filter(c => c.relPath.includes("rollout-old"))).toHaveLength(1);
253-
});
253+
}, { timeout: STORE_BUDGET_MS });
254254
});
255255

256256
describe("normalizeArchivedRolloutPath", () => {
@@ -267,7 +267,7 @@ describe("normalizeArchivedRolloutPath", () => {
267267
// ISO timestamps in filenames must not be treated as Windows drive letters.
268268
expect(normalizeArchivedRolloutPath("archived_sessions/rollout-2026-01-01T10:00:00.jsonl", home))
269269
.toBe("archived_sessions/rollout-2026-01-01T10:00:00.jsonl");
270-
});
270+
}, { timeout: STORE_BUDGET_MS });
271271
});
272272

273273
describe("executeArchivedCleanup", () => {

0 commit comments

Comments
 (0)