Skip to content

Commit 8fe6636

Browse files
committed
test(slack): clean up thread participation cache after implicit mention test
1 parent dbd6fd9 commit 8fe6636

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/slack/monitor/message-handler/prepare.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,8 @@ describe("slack prepareSlackMessage inbound contract", () => {
384384
// oxlint-disable-next-line typescript/no-explicit-any
385385
slackCtx.resolveUserName = async () => ({ name: "Bot" }) as any;
386386

387-
const { recordSlackThreadParticipation } = await import("../../sent-thread-cache.js");
387+
const { recordSlackThreadParticipation, clearSlackThreadParticipationCache } =
388+
await import("../../sent-thread-cache.js");
388389
recordSlackThreadParticipation("default", "C123", "1.000");
389390

390391
const account = createSlackAccount({ allowBots: "mentions" });
@@ -399,6 +400,7 @@ describe("slack prepareSlackMessage inbound contract", () => {
399400

400401
const prepared = await prepareMessageWith(slackCtx, account, message);
401402
expect(prepared).toBeTruthy();
403+
clearSlackThreadParticipationCache();
402404
});
403405

404406
it("keeps channel metadata out of GroupSystemPrompt", async () => {

0 commit comments

Comments
 (0)