Skip to content

Commit 27c926e

Browse files
Change timing for tests
Signed-off-by: Thomas Poignant <[email protected]>
1 parent 7a07942 commit 27c926e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/providers/go-feature-flag/src/lib/go-feature-flag-provider.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ describe('GoFeatureFlagProvider', () => {
967967
it('Should change evaluation details if config has changed', async () => {
968968
jest.useRealTimers();
969969
let callCount = 0;
970-
fetchMock.mockIf(/^http:\/\/localhost:1031/, async () => {
970+
fetchMock.mockIf(/^http:\/\/localhost:1031\/v1\/flag\/configuration/, async () => {
971971
callCount++;
972972
if (callCount <= 1) {
973973
return {
@@ -994,7 +994,7 @@ describe('GoFeatureFlagProvider', () => {
994994

995995
const provider = new GoFeatureFlagProvider({
996996
endpoint: 'http://localhost:1031',
997-
flagChangePollingIntervalMs: 200,
997+
flagChangePollingIntervalMs: 150,
998998
});
999999

10001000
await OpenFeature.setProviderAndWait(testClientName, provider);

0 commit comments

Comments
 (0)