diff --git a/src/services/common/__tests__/__snapshots__/serviceConfig.test.js.snap b/src/services/common/__tests__/__snapshots__/serviceConfig.test.js.snap index 1aa1d7bad..7c495b798 100644 --- a/src/services/common/__tests__/__snapshots__/serviceConfig.test.js.snap +++ b/src/services/common/__tests__/__snapshots__/serviceConfig.test.js.snap @@ -372,7 +372,7 @@ exports[`ServiceConfig should handle polling service call errors: status error p "config": undefined, "url": "/pollError", }, - "pollInterval": 1, + "pollInterval": 0, "status": [Function], "validate": [Function], }, @@ -415,7 +415,7 @@ exports[`ServiceConfig should handle polling service call errors: status of a st "config": undefined, "url": "/pollError", }, - "pollInterval": 1, + "pollInterval": 0, "status": [Function], "validate": [Function], }, @@ -465,7 +465,7 @@ exports[`ServiceConfig should handle polling service calls: basic polling valida "config": undefined, "url": "/test/", }, - "pollInterval": 1, + "pollInterval": 0, "validate": [Function], }, }, @@ -519,7 +519,7 @@ exports[`ServiceConfig should handle polling service calls: custom location 1`] "pollConfig": { "__retryCount": 0, "location": [Function], - "pollInterval": 1, + "pollInterval": 0, "validate": [Function], }, "url": "/pollSuccess/", @@ -576,7 +576,7 @@ exports[`ServiceConfig should handle polling service calls: specific polling val "config": undefined, "url": "/test/", }, - "pollInterval": 1, + "pollInterval": 0, "validate": [Function], }, }, @@ -629,7 +629,7 @@ exports[`ServiceConfig should handle polling service calls: status polling 1`] = "config": undefined, "url": "/test/", }, - "pollInterval": 1, + "pollInterval": 0, "status": [Function], "validate": [Function], }, diff --git a/src/services/common/__tests__/serviceConfig.test.js b/src/services/common/__tests__/serviceConfig.test.js index 4acf3949f..1cb6e7598 100644 --- a/src/services/common/__tests__/serviceConfig.test.js +++ b/src/services/common/__tests__/serviceConfig.test.js @@ -265,7 +265,7 @@ describe('ServiceConfig', () => { return count === 1; } }, - { pollInterval: 1 } + { pollInterval: 0 } ); expect(basicPollValidator).toHaveBeenCalledTimes(3); @@ -295,7 +295,7 @@ describe('ServiceConfig', () => { } } }, - { pollInterval: 1 } + { pollInterval: 0 } ); expect(specificPollValidator).toHaveBeenCalledTimes(3); @@ -323,7 +323,7 @@ describe('ServiceConfig', () => { status: (...args) => statusPoll(...args) } }, - { pollInterval: 1 } + { pollInterval: 0 } ); // delay to give the internal status promise time to unwrap @@ -358,7 +358,7 @@ describe('ServiceConfig', () => { validate: (response, count) => count === 2 } }, - { pollInterval: 1 } + { pollInterval: 0 } ); expect(mockLocation).toHaveBeenCalledTimes(3); @@ -389,7 +389,7 @@ describe('ServiceConfig', () => { throw new Error('basic validation error'); } }, - { pollInterval: 1 } + { pollInterval: 0 } ); expect(consoleSpyError.mock.calls).toMatchSnapshot('validation error'); consoleSpyError.mockClear(); @@ -405,7 +405,7 @@ describe('ServiceConfig', () => { } } }, - { pollInterval: 1 } + { pollInterval: 0 } ); // delay to give the internal status promise time to unwrap @@ -427,7 +427,7 @@ describe('ServiceConfig', () => { status: (...args) => statusErrorPoll(...args) } }, - { pollInterval: 1 } + { pollInterval: 0 } ); // delay to give the internal status promise time to unwrap @@ -458,7 +458,7 @@ describe('ServiceConfig', () => { } } }, - { pollInterval: 1 } + { pollInterval: 0 } ); // delay to give the internal status promise time to unwrap @@ -483,7 +483,7 @@ describe('ServiceConfig', () => { } } }, - { pollInterval: 1 } + { pollInterval: 0 } ); // delay to give the internal status promise time to unwrap