Skip to content

Commit

Permalink
test: remove flaky focus test case (vercel#1793)
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi authored and nevilm-lt committed Apr 22, 2022
1 parent c3fe98f commit 9c0aa08
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/use-swr-focus.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,7 @@ describe('useSWR - focus', () => {
await focusWindow()
// wait for throttle intervals
await act(() => sleep(150))
// trigger revalidation
await focusWindow()
await waitForNextTick()
await act(() => sleep(100))
await screen.findByText('data: 5')
await screen.findByText('data: 4')
})

it('should revalidate on focus even with custom cache', async () => {
Expand Down

0 comments on commit 9c0aa08

Please sign in to comment.