@@ -344,7 +344,7 @@ describe('base-client.ts', () => {
344
344
345
345
// Wait for cache to expire
346
346
await new Promise ( resolve => {
347
- setTimeout ( resolve , 20 ) ;
347
+ setTimeout ( resolve , 50 ) ;
348
348
} ) ;
349
349
350
350
await client . endpointWitCacheRetention . cached ( ) ;
@@ -356,18 +356,18 @@ describe('base-client.ts', () => {
356
356
it ( 'should ignore cache if cache expired using endpoint retention with object' , async ( ) => {
357
357
expect . assertions ( 2 ) ;
358
358
359
- await client . endpointWitCacheRetention . cached ( ) ;
360
- await client . endpointWitCacheRetention . cached ( ) ;
359
+ await client . endpointWitCacheObject . cached ( ) ;
360
+ await client . endpointWitCacheObject . cached ( ) ;
361
361
362
362
// Wait for cache to expire
363
363
await new Promise ( resolve => {
364
- setTimeout ( resolve , 20 ) ;
364
+ setTimeout ( resolve , 50 ) ;
365
365
} ) ;
366
366
367
- await client . endpointWitCacheRetention . cached ( ) ;
367
+ await client . endpointWitCacheObject . cached ( ) ;
368
368
369
369
expect ( fetch ) . toHaveBeenCalledTimes ( 2 ) ;
370
- expect ( fetch ) . toHaveBeenCalledWith ( new URL ( '/endpoint-with-cache-retention ' , mockEndpoint ) . toString ( ) , payload ) ;
370
+ expect ( fetch ) . toHaveBeenCalledWith ( new URL ( '/endpoint-with-cache-object ' , mockEndpoint ) . toString ( ) , payload ) ;
371
371
} ) ;
372
372
373
373
it ( 'should ignore cache if cache expired using param force' , async ( ) => {
0 commit comments