fix: serialize database activity during playout
This commit is contained in:
@@ -132,6 +132,15 @@ test("A database refresh fault clears only after TAKE OUT resets refresh state",
|
||||
assert.equal(safety.shouldClearRefreshError(unrelated, false), false);
|
||||
});
|
||||
|
||||
test("Database health snapshots accept only a strictly increasing native sequence", () => {
|
||||
assert.equal(safety.isNewerDatabaseStatusSequence(0, 1), true);
|
||||
assert.equal(safety.isNewerDatabaseStatusSequence(7, 8), true);
|
||||
assert.equal(safety.isNewerDatabaseStatusSequence(7, 7), false);
|
||||
assert.equal(safety.isNewerDatabaseStatusSequence(7, 6), false);
|
||||
assert.equal(safety.isNewerDatabaseStatusSequence(7, "8"), false);
|
||||
assert.equal(safety.isNewerDatabaseStatusSequence(7, null), false);
|
||||
});
|
||||
|
||||
test("Stored conditional aliases preserve the exact builder owner", () => {
|
||||
const catalog = [
|
||||
{ builderKey: "s5032", code: "5032", aliases: ["5032", "8018", "8032"] },
|
||||
|
||||
Reference in New Issue
Block a user