diff --git a/src/web/auto-reply.test.ts b/src/web/auto-reply.test.ts index 8a97a5e9d..be00362e1 100644 --- a/src/web/auto-reply.test.ts +++ b/src/web/auto-reply.test.ts @@ -822,7 +822,8 @@ describe("web auto-reply", () => { await run; const heartbeatCall = replyResolver.mock.calls.find( - (call) => call[0]?.Body === HEARTBEAT_PROMPT, + (call) => + call[0]?.Body === HEARTBEAT_PROMPT && call[0]?.MessageSid === "sid-main", ); expect(heartbeatCall?.[0]?.From).toBe("+1555"); expect(heartbeatCall?.[0]?.To).toBe("+1555");