test: check cli runner fallback calls · openclaw/openclaw@087f1e0
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -164,7 +164,7 @@ describe("runCliAgent cron before_agent_reply seam", () => {
|
164 | 164 | await runCliAgent({ ...baseRunParams, trigger: "user" }); |
165 | 165 | |
166 | 166 | expect(runBeforeAgentReplyMock).not.toHaveBeenCalled(); |
167 | | -expect(executePreparedCliRunMock).toHaveBeenCalled(); |
| 167 | +expect(executePreparedCliRunMock).toHaveBeenCalledTimes(1); |
168 | 168 | }); |
169 | 169 | |
170 | 170 | it("falls through to the CLI subprocess when no before_agent_reply hook is registered", async () => { |
@@ -175,7 +175,7 @@ describe("runCliAgent cron before_agent_reply seam", () => {
|
175 | 175 | await runCliAgent({ ...baseRunParams, trigger: "cron" }); |
176 | 176 | |
177 | 177 | expect(runBeforeAgentReplyMock).not.toHaveBeenCalled(); |
178 | | -expect(executePreparedCliRunMock).toHaveBeenCalled(); |
| 178 | +expect(executePreparedCliRunMock).toHaveBeenCalledTimes(1); |
179 | 179 | }); |
180 | 180 | |
181 | 181 | it("can close temporary CLI live sessions after a run", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。