Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(desktop-ui): r5-l7 allow explicit retry backoff in waits

Josué74974b4c45ab
diff --git a/desktop-app/ui/src/hooks/domain/__tests__/pendingChatSelection.characterization.test.tsx b/desktop-app/ui/src/hooks/domain/__tests__/pendingChatSelection.characterization.test.tsx
index 1a17d1a0e..8e73a69d3 100644
--- a/desktop-app/ui/src/hooks/domain/__tests__/pendingChatSelection.characterization.test.tsx
+++ b/desktop-app/ui/src/hooks/domain/__tests__/pendingChatSelection.characterization.test.tsx
@@ -308,8 +308,10 @@ describe('pendingChatSelection effect', () => {
await act(async () => {
releaseIndexFailure.resolve()
})
- await waitFor(() =>
- expect(controller.result.current.chatList.map(chat => chat.id)).toContain('prior-server')
+ await waitFor(
+ () =>
+ expect(controller.result.current.chatList.map(chat => chat.id)).toContain('prior-server'),
+ { timeout: 3000 }
)
await act(async () => {
@@ -371,8 +373,9 @@ describe('pendingChatSelection effect', () => {
releaseIndexFailure.resolve()
})
- await waitFor(() =>
- expect(controller.result.current.activeChatId).toBe('server-latest-after-retry')
+ await waitFor(
+ () => expect(controller.result.current.activeChatId).toBe('server-latest-after-retry'),
+ { timeout: 3000 }
)
expect(clerum.chat.getIndex).toHaveBeenCalledTimes(2)
} finally {