Skip to content

Commit 76b5db8

Browse files
committed
test(cache): add vitest retry to wildcard pattern test
Configure test to retry up to 3 times to handle flakiness from filesystem race conditions in cacache operations.
1 parent 3bcc64a commit 76b5db8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/cache-with-ttl.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ describe.sequential('cache-with-ttl', () => {
262262
expect(await cache.get('posts:1')).toBe('hello')
263263
})
264264

265-
it('should handle wildcard patterns', async () => {
265+
it('should handle wildcard patterns', { retry: 3 }, async () => {
266266
await cache.set('npm/lodash/1.0.0', 'data1')
267267
await cache.set('npm/lodash/2.0.0', 'data2')
268268
await cache.set('npm/react/1.0.0', 'data3')

0 commit comments

Comments
 (0)