From 05835dd2d4f72866da40469b9be3e810b86cb2ab Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 21 Apr 2026 00:50:16 +0100 Subject: [PATCH] test: use synthetic heartbeat wake fixtures --- src/infra/heartbeat-wake.test.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/infra/heartbeat-wake.test.ts b/src/infra/heartbeat-wake.test.ts index 3e5f75e0300..4dd2ce30402 100644 --- a/src/infra/heartbeat-wake.test.ts +++ b/src/infra/heartbeat-wake.test.ts @@ -262,7 +262,7 @@ describe("heartbeat-wake", () => { requestHeartbeatNow({ reason: "cron:job-1", agentId: "ops", - sessionKey: "agent:ops:discord:channel:alerts", + sessionKey: "agent:ops:guildchat:channel:alerts", heartbeat: { target: "last" }, coalesceMs: 0, }); @@ -272,7 +272,7 @@ describe("heartbeat-wake", () => { expect(handler.mock.calls[0]?.[0]).toEqual({ reason: "cron:job-1", agentId: "ops", - sessionKey: "agent:ops:discord:channel:alerts", + sessionKey: "agent:ops:guildchat:channel:alerts", heartbeat: { target: "last" }, }); @@ -281,7 +281,7 @@ describe("heartbeat-wake", () => { expect(handler.mock.calls[1]?.[0]).toEqual({ reason: "cron:job-1", agentId: "ops", - sessionKey: "agent:ops:discord:channel:alerts", + sessionKey: "agent:ops:guildchat:channel:alerts", heartbeat: { target: "last" }, }); }); @@ -294,14 +294,14 @@ describe("heartbeat-wake", () => { requestHeartbeatNow({ reason: "manual", agentId: "ops", - sessionKey: "agent:ops:discord:channel:alerts", + sessionKey: "agent:ops:guildchat:channel:alerts", heartbeat: { target: "last" }, coalesceMs: 100, }); requestHeartbeatNow({ reason: "manual", agentId: "ops", - sessionKey: "agent:ops:discord:channel:alerts", + sessionKey: "agent:ops:guildchat:channel:alerts", coalesceMs: 100, }); @@ -311,7 +311,7 @@ describe("heartbeat-wake", () => { expect(handler).toHaveBeenCalledWith({ reason: "manual", agentId: "ops", - sessionKey: "agent:ops:discord:channel:alerts", + sessionKey: "agent:ops:guildchat:channel:alerts", heartbeat: { target: "last" }, }); }); @@ -324,13 +324,13 @@ describe("heartbeat-wake", () => { requestHeartbeatNow({ reason: "cron:job-a", agentId: "ops", - sessionKey: "agent:ops:discord:channel:alerts", + sessionKey: "agent:ops:guildchat:channel:alerts", coalesceMs: 100, }); requestHeartbeatNow({ reason: "cron:job-b", agentId: "main", - sessionKey: "agent:main:telegram:group:-1001", + sessionKey: "agent:main:forum:group:-1001", coalesceMs: 100, }); @@ -342,12 +342,12 @@ describe("heartbeat-wake", () => { { reason: "cron:job-a", agentId: "ops", - sessionKey: "agent:ops:discord:channel:alerts", + sessionKey: "agent:ops:guildchat:channel:alerts", }, { reason: "cron:job-b", agentId: "main", - sessionKey: "agent:main:telegram:group:-1001", + sessionKey: "agent:main:forum:group:-1001", }, ]), );