diff --git a/apps/server/src/routes/slack/handler.test.ts b/apps/server/src/routes/slack/handler.test.ts index 19086d512..e9f4b8de7 100644 --- a/apps/server/src/routes/slack/handler.test.ts +++ b/apps/server/src/routes/slack/handler.test.ts @@ -2596,8 +2596,10 @@ describe("channel history", () => { const redis = (globalThis as Record) .__testRedisStore as Map; redis.set( - `slack:created:${FIXTURE_MENTION_TS}`, - JSON.stringify([{ kind: "status_report", id: 12, label: "API errors" }]), + `slack:created-list:${FIXTURE_MENTION_TS}`, + JSON.stringify([ + JSON.stringify({ kind: "status_report", id: 12, label: "API errors" }), + ]), ); const notes = captureNotes(); await signAndPost(app, { @@ -2613,7 +2615,8 @@ describe("channel history", () => { await waitFor(() => notes.length > 0); await settleBackgroundTasks(); - expect(notes[0]).toContain('status report #12 "API errors"'); + expect(notes[0]).toContain("status report #12"); + expect(notes[0]).not.toContain("API errors"); }); test("a history failure still answers, without the note", async () => { diff --git a/apps/server/src/routes/slack/interactions.test.ts b/apps/server/src/routes/slack/interactions.test.ts index e09deb58a..0014943de 100644 --- a/apps/server/src/routes/slack/interactions.test.ts +++ b/apps/server/src/routes/slack/interactions.test.ts @@ -459,7 +459,9 @@ describe("registry-runner execution paths", () => { team: { id: "T_KNOWN" }, actions: [{ action_id: "approve_maint-001" }], }); - const remembered = JSON.parse(redisStore.get("slack:created:2.1") ?? "[]"); + const remembered = ( + JSON.parse(redisStore.get("slack:created-list:2.1") ?? "[]") as string[] + ).map((item) => JSON.parse(item)); expect(remembered).toEqual([ { kind: "maintenance", id: expect.any(Number), label: "DB Maintenance" }, ]);