mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-22 06:08:13 +00:00
test: count model switch side effects
This commit is contained in:
@@ -873,7 +873,7 @@ describe("agentCommand – LiveSessionModelSwitchError retry", () => {
|
||||
thinking: "xhigh",
|
||||
});
|
||||
|
||||
expect(state.loadManifestModelCatalogMock).toHaveBeenCalled();
|
||||
expect(state.loadManifestModelCatalogMock).toHaveBeenCalledTimes(1);
|
||||
const thinkingArgs = requireRecord(
|
||||
mockCallArg(state.isThinkingLevelSupportedMock),
|
||||
"thinking args",
|
||||
@@ -921,7 +921,7 @@ describe("agentCommand – LiveSessionModelSwitchError retry", () => {
|
||||
fallbackStepChainPosition: 1,
|
||||
fallbackStepFinalOutcome: "next_fallback",
|
||||
});
|
||||
expect(state.trajectoryFlushMock).toHaveBeenCalled();
|
||||
expect(state.trajectoryFlushMock).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
it("suppresses duplicate user persistence only after the current turn has flushed", async () => {
|
||||
|
||||
Reference in New Issue
Block a user