mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-26 09:55:12 +00:00
test: guard cron model override call
This commit is contained in:
@@ -177,11 +177,9 @@ describe("runCronIsolatedAgentTurn — cron model override forwarding (#58065)",
|
||||
const result = await runCronIsolatedAgentTurn(makeParams());
|
||||
|
||||
expect(result.status).toBe("ok");
|
||||
const embeddedCall = runEmbeddedPiAgentMock.mock.calls[0]?.[0] as
|
||||
| { provider?: string; model?: string }
|
||||
| undefined;
|
||||
expect(embeddedCall?.provider).toBe("google");
|
||||
expect(embeddedCall?.model).toBe("gemini-2.0-flash");
|
||||
const embeddedCall = firstMockArg(runEmbeddedPiAgentMock);
|
||||
expect(embeddedCall.provider).toBe("google");
|
||||
expect(embeddedCall.model).toBe("gemini-2.0-flash");
|
||||
});
|
||||
|
||||
it("forwards isolated cron execution phase updates from embedded runs", async () => {
|
||||
|
||||
Reference in New Issue
Block a user