diff --git a/src/agents/acp-spawn.test.ts b/src/agents/acp-spawn.test.ts index 758aae8a164..e948d2c37de 100644 --- a/src/agents/acp-spawn.test.ts +++ b/src/agents/acp-spawn.test.ts @@ -1148,6 +1148,7 @@ describe("spawnAcpDirect", () => { status: "forbidden", error: "agentId is not allowed for sessions_spawn (allowed: research)", }); + expect(hoisted.callGatewayMock).not.toHaveBeenCalled(); expect(hoisted.initializeSessionMock).not.toHaveBeenCalled(); }); });