Skip to content

Commit 5f3a17c

Browse files
committed
chore: update
1 parent b6e9134 commit 5f3a17c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/react-query/src/__tests__/HydrationBoundary.test.tsx

+2-6
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,8 @@ describe('React hydration', () => {
359359
</QueryClientProvider>,
360360
)
361361

362-
await Promise.all(
363-
Array.from({ length: 1000 }).map(async (_, index) => {
364-
await vi.advanceTimersByTimeAsync(index)
365-
expect(hydrateSpy).toHaveBeenCalledTimes(0)
366-
}),
367-
)
362+
await vi.runAllTimersAsync()
363+
expect(hydrateSpy).toHaveBeenCalledTimes(0)
368364

369365
hydrateSpy.mockRestore()
370366
queryClient.clear()

0 commit comments

Comments
 (0)