mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-21 05:32:53 +00:00
Tests: update compaction fallback retry mock
This commit is contained in:
@@ -32,9 +32,7 @@ const testModel = {
|
||||
describe("summarizeWithFallback", () => {
|
||||
beforeEach(() => {
|
||||
piCodingAgentMocks.generateSummary.mockReset();
|
||||
piCodingAgentMocks.generateSummary.mockRejectedValue(
|
||||
new Error("Summarization failed: fetch failed"),
|
||||
);
|
||||
piCodingAgentMocks.generateSummary.mockRejectedValue(new Error("Summarization failed"));
|
||||
piCodingAgentMocks.estimateTokens.mockReset();
|
||||
piCodingAgentMocks.estimateTokens.mockImplementation(() => 100);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user