test: guard cron model override call

This commit is contained in:
Peter Steinberger
2026-05-11 22:17:51 +01:00
parent 7a7b2316e1
commit a03382181c

View File

@@ -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 () => {