Skip to content

Commit 447a139

Browse files
committed
fix(test): increases retention to prevent flakiness
1 parent 54dec62 commit 447a139

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/common/base-client.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -408,15 +408,15 @@ describe('base-client.ts', () => {
408408
expect.assertions(2);
409409

410410
const _cacheStore: CacheStore<Response> = new Map();
411-
_cacheStore.retention = 15;
411+
_cacheStore.retention = 50;
412412
const _client = new TestableBaseClient({ endpoint: 'http://my-endpoint', cacheStore: _cacheStore });
413413

414414
await _client.endpointWithCache.cached();
415415
await _client.endpointWithCache.cached();
416416

417417
// Wait for cache to expire
418418
await new Promise(resolve => {
419-
setTimeout(resolve, 15);
419+
setTimeout(resolve, 50);
420420
});
421421

422422
await _client.endpointWithCache.cached();

0 commit comments

Comments
 (0)