Skip to content

Commit 80c49cf

Browse files
committed
test(storage): budget the two cleanup-mode tests on loaded Windows runners
Both execute real SQLite writes and filesystem moves, the same intrinsic-cost class as the five neighbors that already carry STORE_BUDGET_MS — they simply never got the budget, and flaked at ~5.6s against bun's 5s default on the windows-latest runner. Ablation check: both assert real quarantine/permanent behavior (locally green in <0.5s), so the budget is headroom, not cover.
1 parent 0bccc8a commit 80c49cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/storage-cleanup.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ describe("executeArchivedCleanup", () => {
401401
const ids = db.query<{ id: string }, []>("SELECT id FROM threads ORDER BY id").all().map(r => r.id);
402402
db.close();
403403
expect(ids).toEqual(["active", "tmid", "tnew"]);
404-
});
404+
}, { timeout: STORE_BUDGET_MS });
405405

406406
test("permanent deletes files and threads without creating trash", () => {
407407
home = buildHome();
@@ -417,7 +417,7 @@ describe("executeArchivedCleanup", () => {
417417
const ids = db.query<{ id: string }, []>("SELECT id FROM threads").all().map(r => r.id);
418418
db.close();
419419
expect(ids).toEqual(["active"]);
420-
});
420+
}, { timeout: STORE_BUDGET_MS });
421421

422422
test("stale_preview when filesystem changed after preview", () => {
423423
home = buildHome();

0 commit comments

Comments
 (0)