mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 22:32:04 +00:00
test(02-12.1): prove the record-session fence end to end
- give every acceptance case a stable id and assert the mapping from a runnable artifact, recording which cases execute in the ordinary gate and which await the browser stage - add the browser spec for the cases no cooperative layer can reach: peers reconciling to an exact context, an aborted switch response, a closed initiator, a delayed response, and the offline disk layers
This commit is contained in:
1 parent
31b4857d8b
commit
8fcbdcc0df
4 files changed
+653
-4
No files matched your search
@@ -199,8 +199,9 @@ describe("FENCE-AC-05 an idempotent write under a moved record context", () => {
|
||||
expect(body.meta.errorCode).toBe(RECORD_FENCE_ERROR_CODE);
|
||||
|
||||
// (b) the seeded cell is untouched — nothing read it, claimed it, or
|
||||
// rewrote it. `updatedAt` is the falsifiable half: a wrapper that reached
|
||||
// the cache and released a claim would leave the row present but moved.
|
||||
// rewrote it. `expiresAt` is the falsifiable half: completion rewrites it
|
||||
// to now+24h and a fresh claim to now+2min, so a wrapper that reached the
|
||||
// cache at all would move it.
|
||||
const after = await cells();
|
||||
expect(after).toHaveLength(1);
|
||||
expect(after[0].id).toBe(before.id);
|
||||
|
||||
Reference in new issue
Block a user