Skip to content

Commit 4fe6ff4

Browse files
committed
we need different timeouts for different queries
to make sure node10 resolves them in order
1 parent 6446a13 commit 4fe6ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react/tests/useQueries.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ describe('useQueries', () => {
140140
queryKey: [key, count, i + 1],
141141
keepPreviousData: true,
142142
queryFn: async () => {
143-
await sleep(5)
143+
await sleep(5 * (i + 1))
144144
return (i + 1) * count * 2
145145
},
146146
}))

0 commit comments

Comments
 (0)