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(board): retain reference database in index callback [C7,P4]

Corey Olson0381585c6ede
diff --git a/test/board-busy.test.js b/test/board-busy.test.js
index 1704159c..58d4d058 100644
--- a/test/board-busy.test.js
+++ b/test/board-busy.test.js
@@ -300,7 +300,6 @@ test('opening an older board names and logs its genuine index-building write [C7
import { existsSync } from 'node:fs';
const originalExec = DatabaseSync.prototype.exec;
const reference = new DatabaseSync(':memory:');
- const extract = reference.prepare('SELECT json_extract(?, ?) AS value');
let registered = false;
let held = false;
/** Pause inside actual SQLite index evaluation, preserving reference SQLite JSON semantics. */
@@ -318,7 +317,7 @@ test('opening an older board names and logs its genuine index-building write [C7
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 20);
}
}
- return extract.get(value, path).value;
+ return reference.prepare('SELECT json_extract(?, ?) AS value').get(value, path).value;
}
this.function('json_extract', { deterministic: true }, extractIdentity);
}