Skip to content

Commit f1bf1ca

Browse files
committed
Fix flakiness in infinite query polling test
1 parent 33b8b84 commit f1bf1ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/toolkit/src/query/tests/infiniteQueries.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,10 @@ describe('Infinite queries', () => {
591591
])
592592

593593
thirdPromise.updateSubscriptionOptions({
594-
pollingInterval: 10,
594+
pollingInterval: 50,
595595
})
596596

597-
await delay(5)
597+
await delay(25)
598598

599599
let entry = countersApi.endpoints.counters.select('item')(
600600
storeRef.store.getState(),
@@ -606,7 +606,7 @@ describe('Infinite queries', () => {
606606
{ page: 5, hitCounter: 3 },
607607
])
608608

609-
await delay(10)
609+
await delay(50)
610610

611611
entry = countersApi.endpoints.counters.select('item')(
612612
storeRef.store.getState(),

0 commit comments

Comments
 (0)