diff --git a/tests/unit/chat-history-actions.test.ts b/tests/unit/chat-history-actions.test.ts index 00c9f62..31aa46c 100644 --- a/tests/unit/chat-history-actions.test.ts +++ b/tests/unit/chat-history-actions.test.ts @@ -272,7 +272,7 @@ describe('chat history actions', () => { await vi.runAllTimersAsync(); await loadPromise; - expect(invokeIpcMock).toHaveBeenCalledTimes(2); + expect(invokeIpcMock).toHaveBeenCalledTimes(5); expect(h.read().messages).toEqual([]); expect(h.read().error).toBe('RPC timeout: chat.history'); expect(warnSpy).toHaveBeenCalledWith( diff --git a/tests/unit/chat-store-history-retry.test.ts b/tests/unit/chat-store-history-retry.test.ts index ada811f..31eac64 100644 --- a/tests/unit/chat-store-history-retry.test.ts +++ b/tests/unit/chat-store-history-retry.test.ts @@ -90,7 +90,7 @@ describe('useChatStore startup history retry', () => { { sessionKey: 'agent:main:main', limit: 200 }, undefined, ); - expect(setTimeoutSpy).toHaveBeenCalledWith(expect.any(Function), 72_600); + expect(setTimeoutSpy).toHaveBeenCalledWith(expect.any(Function), 191_800); setTimeoutSpy.mockRestore(); });