Fix recovery assertions for revoked seats

This commit is contained in:
Quintine committed 2026-10-27 18:06:21 +11:00
1 parent 3061dc5004
commit b64c657c1d
1 file changed
+2 -2
+2 -2
View File
@@ -376,7 +376,7 @@ void test('already-authenticated old actions and reads are fenced even at the la
// Deliberately supply the fresh version: version protection alone must not pass this request. // Deliberately supply the fresh version: version protection alone must not pass this request.
await assert.rejects( await assert.rejects(
rooms.act(code, oldAuth, recovered.view.version, { type: 'ready' }), rooms.act(code, oldAuth, recovered.view.version, { type: 'ready' }),
/Another action/, /Your seat could not be verified\./,
); );
await assert.rejects(rooms.readSeatView(code, oldAuth), /verified/); await assert.rejects(rooms.readSeatView(code, oldAuth), /verified/);
const newAuth = await rooms.authenticate(code, body.newSessionToken); const newAuth = await rooms.authenticate(code, body.newSessionToken);
@@ -715,7 +715,7 @@ void test('SQLite recovery distinct concurrent claims fence the loser and never
); );
await assert.rejects( await assert.rejects(
f.rooms.act(f.code, winningAuth, later.view.version, { type: 'ready' }), f.rooms.act(f.code, winningAuth, later.view.version, { type: 'ready' }),
/Another action/, /Your seat could not be verified\./,
); );
assert.equal(custodySnapshot(f.sqlite), afterLater); assert.equal(custodySnapshot(f.sqlite), afterLater);
assert.equal( assert.equal(