Skip to content

Commit

Permalink
Fix flakiness in infinite query polling test
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Mar 3, 2025
1 parent 33b8b84 commit f1bf1ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/toolkit/src/query/tests/infiniteQueries.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -591,10 +591,10 @@ describe('Infinite queries', () => {
])

thirdPromise.updateSubscriptionOptions({
pollingInterval: 10,
pollingInterval: 50,
})

await delay(5)
await delay(25)

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

await delay(10)
await delay(50)

entry = countersApi.endpoints.counters.select('item')(
storeRef.store.getState(),
Expand Down

0 comments on commit f1bf1ca

Please sign in to comment.