Skip to content

Commit

Permalink
chore: stabilize another flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo committed Jul 18, 2023
1 parent cff9f4b commit 503b9e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-query/src/__tests__/useQuery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5458,6 +5458,7 @@ describe('useQuery', () => {
await waitFor(() => rendered.getByText('failureReason: failed1'))

const onlineMock = mockNavigatorOnLine(false)
window.dispatchEvent(new Event('offline'))

await sleep(20)

Expand Down

0 comments on commit 503b9e2

Please sign in to comment.