From c78c109766c10412f8535b88f82d109821c8435e Mon Sep 17 00:00:00 2001 From: Aaron Reynoza Date: Thu, 16 Nov 2023 07:11:19 -0600 Subject: [PATCH] fix(mojaloop/#3526): increase wait time for failing tests --- .../Settlement-management-primary-currency-test.json | 4 ++-- .../Settlement-management-second-currency-test.json | 4 ++-- .../settlement_management/mixed_settlement_model.json | 4 ++-- .../hub/provisioning/MojaloopSims_Onboarding/payerfsp.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/collections/hub/golden_path/settlement_management/Settlement-management-primary-currency-test.json b/collections/hub/golden_path/settlement_management/Settlement-management-primary-currency-test.json index d2e6d36b..a084464f 100644 --- a/collections/hub/golden_path/settlement_management/Settlement-management-primary-currency-test.json +++ b/collections/hub/golden_path/settlement_management/Settlement-management-primary-currency-test.json @@ -2613,7 +2613,7 @@ "if (environment.ENABLE_WS_ASSERTIONS===true) {", " // NOTE: This has been commented out due to the WS issue https://github.com/mojaloop/project/issues/3164, with a work-around to call the HTTP equivalent API on the postRequest instead until it can be resolved.", " // environment.testfsp2callbacks = await websocket.getMessage('testfsp2callbacksq', environment.WS_ASSERTION_TIMEOUT)", - " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1000", + " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1500", " await custom.sleep(customSleep)", " environment.testfsp2callbacks = (await axios.get(environment.TESTFSP2_SDK_TESTAPI_URL + '/callbacks/{$request.body.quoteId}')).data", "}", @@ -2743,7 +2743,7 @@ "if (environment.ENABLE_WS_ASSERTIONS===true) {", " // NOTE: This has been commented out due to the WS issue https://github.com/mojaloop/project/issues/3164, with a work-around to call the HTTP equivalent API on the postRequest instead until it can be resolved.", " // environment.testfsp2callbackst = await websocket.getMessage('testfsp2callbackst', environment.WS_ASSERTION_TIMEOUT)", - " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1000", + " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1500", " await custom.sleep(customSleep)", " environment.testfsp2callbackst = (await axios.get(environment.TESTFSP2_SDK_TESTAPI_URL + '/callbacks/{$request.body.transferId}')).data", "}" diff --git a/collections/hub/golden_path/settlement_management/Settlement-management-second-currency-test.json b/collections/hub/golden_path/settlement_management/Settlement-management-second-currency-test.json index 851816d9..7a6c1456 100644 --- a/collections/hub/golden_path/settlement_management/Settlement-management-second-currency-test.json +++ b/collections/hub/golden_path/settlement_management/Settlement-management-second-currency-test.json @@ -2611,7 +2611,7 @@ "if (environment.ENABLE_WS_ASSERTIONS===true) {", " // NOTE: This has been commented out due to the WS issue https://github.com/mojaloop/project/issues/3164, with a work-around to call the HTTP equivalent API on the postRequest instead until it can be resolved.", " // environment.testfsp2callbacks = await websocket.getMessage('testfsp2callbacksq', environment.WS_ASSERTION_TIMEOUT)", - " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1000", + " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1500", " await custom.sleep(customSleep)", " environment.testfsp2callbacks = (await axios.get(environment.TESTFSP2_SDK_TESTAPI_URL + '/callbacks/{$request.body.quoteId}')).data", "}", @@ -2741,7 +2741,7 @@ "if (environment.ENABLE_WS_ASSERTIONS===true) {", " // NOTE: This has been commented out due to the WS issue https://github.com/mojaloop/project/issues/3164, with a work-around to call the HTTP equivalent API on the postRequest instead until it can be resolved.", " //environment.testfsp2callbackst = await websocket.getMessage('testfsp2callbackst', environment.WS_ASSERTION_TIMEOUT)", - " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1000", + " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1500", " await custom.sleep(customSleep)", " environment.testfsp2callbackst = (await axios.get(environment.TESTFSP2_SDK_TESTAPI_URL + '/callbacks/{$request.body.transferId}')).data", " ", diff --git a/collections/hub/golden_path/settlement_management/mixed_settlement_model.json b/collections/hub/golden_path/settlement_management/mixed_settlement_model.json index 5571cd51..31207097 100644 --- a/collections/hub/golden_path/settlement_management/mixed_settlement_model.json +++ b/collections/hub/golden_path/settlement_management/mixed_settlement_model.json @@ -3290,7 +3290,7 @@ "exec": [ "if (environment.ENABLE_WS_ASSERTIONS===true) {", " // NOTE: This has been commented out due to the WS issue https://github.com/mojaloop/project/issues/3164, with a work-around to call the HTTP equivalent API on the postRequest instead until it can be resolved.", - " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1000", + " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1500", " await custom.sleep(customSleep)", " // environment.testfsp2callbacks = await websocket.getMessage('testfsp2callbacksq', environment.WS_ASSERTION_TIMEOUT)", " environment.testfsp2callbacks = (await axios.get(environment.TESTFSP2_SDK_TESTAPI_URL + '/callbacks/{$request.body.quoteId}')).data;", @@ -3421,7 +3421,7 @@ "if (environment.ENABLE_WS_ASSERTIONS===true) {", " // NOTE: This has been commented out due to the WS issue https://github.com/mojaloop/project/issues/3164, with a work-around to call the HTTP equivalent API on the postRequest instead until it can be resolved.", " // environment.testfsp2callbackst = await websocket.getMessage('testfsp2callbackst', environment.WS_ASSERTION_TIMEOUT)", - " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1000", + " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1500", " await custom.sleep(customSleep)", " environment.testfsp2callbackst = (await axios.get(environment.TESTFSP2_SDK_TESTAPI_URL + '/callbacks/{$request.body.transferId}')).data", " console.log(environment.testfsp2callbackst)", diff --git a/collections/hub/provisioning/MojaloopSims_Onboarding/payerfsp.json b/collections/hub/provisioning/MojaloopSims_Onboarding/payerfsp.json index c601ede5..dbdb932f 100644 --- a/collections/hub/provisioning/MojaloopSims_Onboarding/payerfsp.json +++ b/collections/hub/provisioning/MojaloopSims_Onboarding/payerfsp.json @@ -255,7 +255,7 @@ "console.log(`expectedBalance: `, expectedBalance)", "// lets get retry config", "const maxRetryCount = Number.parseFloat(environment.RETRY_MAX_ATTEMPTS) || 20", - "const maxRetryWait = Number.parseFloat(environment.RETRY_MAX_WAIT_IN_MS) || 1000", + "const maxRetryWait = Number.parseFloat(environment.RETRY_MAX_WAIT_IN_MS) || 1500", "", "async function main() {", " let res = pm.response",