






















@@ -61,13 +61,9 @@ describe("startGatewayMemoryBackend", () => {
6161expect(getMemorySearchManagerMock).toHaveBeenCalledTimes(2);
6262expect(getMemorySearchManagerMock).toHaveBeenNthCalledWith(1, { cfg, agentId: "ops" });
6363expect(getMemorySearchManagerMock).toHaveBeenNthCalledWith(2, { cfg, agentId: "main" });
64-expect(log.info).toHaveBeenNthCalledWith(
65-1,
66-'qmd memory startup initialization armed for agent "ops"',
67-);
68-expect(log.info).toHaveBeenNthCalledWith(
69-2,
70-'qmd memory startup initialization armed for agent "main"',
64+expect(log.info).toHaveBeenCalledTimes(1);
65+expect(log.info).toHaveBeenCalledWith(
66+'qmd memory startup initialization armed for 2 agents: "ops", "main"',
7167);
7268expect(log.warn).not.toHaveBeenCalled();
7369});
@@ -85,7 +81,7 @@ describe("startGatewayMemoryBackend", () => {
8581'qmd memory startup initialization failed for agent "main": qmd missing',
8682);
8783expect(log.info).toHaveBeenCalledWith(
88-'qmd memory startup initialization armed for agent "ops"',
84+'qmd memory startup initialization armed for 1 agent: "ops"',
8985);
9086});
9187@@ -105,7 +101,7 @@ describe("startGatewayMemoryBackend", () => {
105101expect(getMemorySearchManagerMock).toHaveBeenCalledTimes(1);
106102expect(getMemorySearchManagerMock).toHaveBeenCalledWith({ cfg, agentId: "main" });
107103expect(log.info).toHaveBeenCalledWith(
108-'qmd memory startup initialization armed for agent "main"',
104+'qmd memory startup initialization armed for 1 agent: "main"',
109105);
110106expect(log.warn).not.toHaveBeenCalled();
111107});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。