From 527d17737148c84cccfd9e8e19da94ce2d29554e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 16 Oct 2026 05:48:00 +0200 Subject: [PATCH] test(mood): keep the random request id out of the no-leak byte check --- tests/integration/mood-prognosis-ladder.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/integration/mood-prognosis-ladder.test.ts b/tests/integration/mood-prognosis-ladder.test.ts index 7176734b4..294941871 100644 --- a/tests/integration/mood-prognosis-ladder.test.ts +++ b/tests/integration/mood-prognosis-ladder.test.ts @@ -418,8 +418,9 @@ describe("GET /api/mood/prognosis", () => { expect(res.status).toBe(403); // Asserted on the bytes, not on a parsed field: the point is that not one - // figure of the owner's reached the response. - const raw = await res.text(); + // figure of the owner's reached the response. The error's random request + // id is taken out first, since its hex digits can spell any small count. + const raw = (await res.text()).replace(/"requestId":"[^"]*"/, ""); expect(raw).not.toContain("predicted"); expect(raw).not.toContain("ciLow"); expect(raw).not.toContain("dimension:a2");