Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

test(queue): close the private board before cleanup [N2,B7]

Corey Olsonc9bcac501715
diff --git a/test/file-growth-notice.test.js b/test/file-growth-notice.test.js
index 7bcd6b0d..c1a8ed8c 100644
--- a/test/file-growth-notice.test.js
+++ b/test/file-growth-notice.test.js
@@ -13,10 +13,10 @@ const HOUR = 60 * 60 * 1000;
/** Seed only private claim state, using a real project and its normal board file. */
function fixture(t, { sameHolder = false, expiredPeer = false } = {}) {
const helpers = createE2eHelpers();
- t.after(helpers.cleanup);
+ let board;
+ t.after(() => { if (board) store.closeBoard(board); helpers.cleanup(); });
const box = helpers.project('true');
- const board = store.openBoard(join(box.repo, '.git', 'pullboard', 'board.sqlite'));
- t.after(() => store.closeBoard(board));
+ board = store.openBoard(join(box.repo, '.git', 'pullboard', 'board.sqlite'));
// This is a board-clock boundary control, not an actual physical lease or elapsed-time claim.
let at = Date.parse('2026-10-24T00:00:00Z');
board.clock = { now: () => new Date(at) };