@@ -27,7 +27,7 @@ import {
27
27
28
28
import { getInstance , IAssignmentEvent , IAssignmentLogger , init } from '.' ;
29
29
30
- const { POLL_INTERVAL_MS , POLL_JITTER_PCT } = constants ;
30
+ const { DEFAULT_POLL_INTERVAL_MS , POLL_JITTER_PCT } = constants ;
31
31
32
32
describe ( 'EppoClient E2E test' , ( ) => {
33
33
const mockLogger : IAssignmentLogger = {
@@ -315,7 +315,7 @@ describe('EppoClient E2E test', () => {
315
315
} ) ;
316
316
317
317
describe ( 'initialization errors' , ( ) => {
318
- const maxRetryDelay = POLL_INTERVAL_MS * POLL_JITTER_PCT ;
318
+ const maxRetryDelay = DEFAULT_POLL_INTERVAL_MS * POLL_JITTER_PCT ;
319
319
const mockConfigResponse = {
320
320
flags : {
321
321
[ flagKey ] : mockUfcFlagConfig ,
@@ -380,7 +380,7 @@ describe('EppoClient E2E test', () => {
380
380
) ;
381
381
382
382
// Expect no further configuration requests
383
- await jest . advanceTimersByTimeAsync ( POLL_INTERVAL_MS ) ;
383
+ await jest . advanceTimersByTimeAsync ( DEFAULT_POLL_INTERVAL_MS ) ;
384
384
expect ( callCount ) . toBe ( 1 ) ;
385
385
} ) ;
386
386
@@ -419,7 +419,7 @@ describe('EppoClient E2E test', () => {
419
419
'default-value' ,
420
420
) ;
421
421
422
- await jest . advanceTimersByTimeAsync ( POLL_INTERVAL_MS ) ;
422
+ await jest . advanceTimersByTimeAsync ( DEFAULT_POLL_INTERVAL_MS ) ;
423
423
424
424
// Expect a new call from poller
425
425
expect ( callCount ) . toBe ( 3 ) ;
0 commit comments