Skip to content

Commit 16b2af5

Browse files
committed
refactor: cacheTime-zero
stabilize test
1 parent 0fa161e commit 16b2af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/tests/query.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ describe('query', () => {
528528
expect(queryCache.find(key)).toBeDefined()
529529
await sleep(10)
530530
// should be removed after an additional staleTime wait
531-
expect(queryCache.find(key)).toBeUndefined()
531+
await waitFor(() => expect(queryCache.find(key)).toBeUndefined())
532532
})
533533

534534
test('should not be garbage collected unless there are no subscribers', async () => {

0 commit comments

Comments
 (0)