Skip to content

Commit

Permalink
increase timeout for ttl test
Browse files Browse the repository at this point in the history
  • Loading branch information
vinikjkkj committed Dec 22, 2024
1 parent 49f266d commit d2d9721
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ttl.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ describe('TTLCache', () => {
setTimeout(() => {
expect(cache.get('key')).toBeUndefined()
done()
}, 20)
}, 50)
}, 25)
}, 1000)

test('should throw SizeError when exceeding maxsize', () => {
cache.set('key', 'value')
Expand All @@ -64,7 +64,7 @@ describe('TTLCache', () => {
expect(cache.get('key')).toBeUndefined()
done()
}, 150)
}, 200)
}, 1000)

test('should return keys and values', () => {
cache.set('key', 'value')
Expand Down

0 comments on commit d2d9721

Please sign in to comment.