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(core): observe queue writers with native SQLite waiting [V4,C7]

Corey Olsonc0bb768e9505
diff --git a/test/submit-compare.test.js b/test/submit-compare.test.js
index 851ea97b..c944608d 100644
--- a/test/submit-compare.test.js
+++ b/test/submit-compare.test.js
@@ -53,11 +53,11 @@ async function observed(predicate, label) {
assert.ok(predicate(), label);
}
-/** Read a private native queue or board without changing its state. */
+/** Read a private queue or board, allowing the same short SQLite writer contention as the resource API. */
function rows(file, sql) {
if (!existsSync(file)) return [];
const db = new DatabaseSync(file, { readOnly: true });
- try { db.exec('PRAGMA query_only=ON'); return db.prepare(sql).all(); }
+ try { db.exec('PRAGMA busy_timeout=10000; PRAGMA query_only=ON'); return db.prepare(sql).all(); }
finally { db.close(); }
}