test: guard cron model override call · openclaw/openclaw@a033821
steipete
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -177,11 +177,9 @@ describe("runCronIsolatedAgentTurn — cron model override forwarding (#58065)",
|
177 | 177 | const result = await runCronIsolatedAgentTurn(makeParams()); |
178 | 178 | |
179 | 179 | expect(result.status).toBe("ok"); |
180 | | -const embeddedCall = runEmbeddedPiAgentMock.mock.calls[0]?.[0] as |
181 | | -| { provider?: string; model?: string } |
182 | | -| undefined; |
183 | | -expect(embeddedCall?.provider).toBe("google"); |
184 | | -expect(embeddedCall?.model).toBe("gemini-2.0-flash"); |
| 180 | +const embeddedCall = firstMockArg(runEmbeddedPiAgentMock); |
| 181 | +expect(embeddedCall.provider).toBe("google"); |
| 182 | +expect(embeddedCall.model).toBe("gemini-2.0-flash"); |
185 | 183 | }); |
186 | 184 | |
187 | 185 | it("forwards isolated cron execution phase updates from embedded runs", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。