Clarify and strengthen state invariant tests
All checks were successful
Build and Deploy Gateway / build-and-push (push) Successful in 13s
Build and Deploy Gateway / deploy (push) Successful in 6s

This commit is contained in:
2026-07-12 12:22:59 +03:00
parent 5e33360c92
commit 2a214fc28b
5 changed files with 76 additions and 5 deletions

View File

@@ -90,7 +90,7 @@ test('state v1 normalizes legacy storage and validates the canonical snapshot',
);
});
test('GET and domain mutations return one state shape with monotonic revisions', async (t) => {
test('data invariant: API mutations return one snapshot, increase revision and roll back subscription failures', async (t) => {
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'harbor-state-contract-'));
const binDir = path.join(dir, 'bin');
const config = {