From 1a11cefffa7af32bed29523fc73c510c91434ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Smoli=C5=84ski?= Date: Wed, 25 Nov 2026 22:14:09 +0100 Subject: [PATCH] Mail relay: the 1.7.0 test allows the status read that follows a new enrolment Co-Authored-By: Claude Fable 5.2 --- test/mailRelay.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/mailRelay.test.ts b/test/mailRelay.test.ts index 0caeeee..19dd567 100644 --- a/test/mailRelay.test.ts +++ b/test/mailRelay.test.ts @@ -815,7 +815,8 @@ describe('review of 7d766b6: R-1 to R-7, R-11, and four mutations it found uncau await updateRelayStore(payload, (current) => ({ ...current, token: foreign })) const before = fake.requests.length expect((await sendThroughRelay(payload, options, { ...MESSAGE, subject: 'As myself' })).sent).toBe(true) - expect(fake.requests.slice(before).map((r) => r.path)).toEqual(['/v1/send', '/v1/enrol', '/v1/send']) + // (a status read follows: what was known about the service was forgotten with the token) + expect(fake.requests.slice(before).map((r) => r.path).slice(0, 3)).toEqual(['/v1/send', '/v1/enrol', '/v1/send']) expect(fake.outbox.at(-1)).toMatchObject({ host: HOST, subject: 'As myself' }) expect((await readRelayStore(payload)).token).not.toBe(foreign) // forgotten here, not revoked there