Skip to content

Commit

Permalink
update test comment
Browse files Browse the repository at this point in the history
  • Loading branch information
promer94 committed Jul 26, 2023
1 parent 2068585 commit 4eda266
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/use-swr-infinite-preload.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ describe('useSWRInfinite - preload', () => {
preload([key, 0], fetcher)
renderWithConfig(<Page />)
screen.getByText('data:')
// If SWR sends requests sequentially, it takes 150ms at least
// If SWR sends parallel requests, it should only take 200ms
await act(() => sleep(200))
screen.getByText('data:apple, banana, pineapple,')
})
Expand All @@ -293,7 +293,6 @@ describe('useSWRInfinite - preload', () => {
preload([key, 2], fetcher)
renderWithConfig(<Page />)
screen.getByText('data:')
// If SWR sends requests sequentially, it takes 150ms at least
await act(() => sleep(50))
screen.getByText('data:apple, banana, pineapple,')
})
Expand Down

0 comments on commit 4eda266

Please sign in to comment.