From 542911190412ad9c560fbea3f0237591f2cc4a31 Mon Sep 17 00:00:00 2001 From: Aaron Reynoza Date: Tue, 14 Nov 2023 22:05:40 -0600 Subject: [PATCH 1/2] fix: increase wait time for sim callback --- .../Settlement-management-second-currency-test.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c853b476..44574409 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 @@ -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) || 250", + " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1000", " await custom.sleep(customSleep)", " environment.testfsp2callbackst = (await axios.get(environment.TESTFSP2_SDK_TESTAPI_URL + '/callbacks/{$request.body.transferId}')).data", " ", From 1161afa36348e2a8bb790f91f25d6fb819033df7 Mon Sep 17 00:00:00 2001 From: Aaron Reynoza Date: Tue, 14 Nov 2023 22:48:51 -0600 Subject: [PATCH 2/2] chore: add more wait time to possible failing tests --- collections/hub/golden_path/settlement_cgs/newsetcgs.json | 2 +- .../Settlement-management-primary-currency-test.json | 4 ++-- .../Settlement-management-second-currency-test.json | 2 +- .../settlement_management/mixed_settlement_model.json | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/collections/hub/golden_path/settlement_cgs/newsetcgs.json b/collections/hub/golden_path/settlement_cgs/newsetcgs.json index 0ffadba6..b97822df 100644 --- a/collections/hub/golden_path/settlement_cgs/newsetcgs.json +++ b/collections/hub/golden_path/settlement_cgs/newsetcgs.json @@ -3864,7 +3864,7 @@ "exec": [ "// lets get retry configs", "var maxRetryCount = Number.parseFloat(environment.RETRY_MAX_ATTEMPTS) || 20;", - "var maxRetryWait = Number.parseFloat(environment.RETRY_MAX_WAIT_IN_MS) || 250;", + "var maxRetryWait = Number.parseFloat(environment.RETRY_MAX_WAIT_IN_MS) || 1000;", "// var maxRetryWait = 1;", "", "const envSettlementRuleInterchangeFee = Number.parseFloat(environment.SETTLEMENT_RULE_INTERCHANGE_FEE) || 0.006;", 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 dab9ced9..d2e6d36b 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) || 250", + " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1000", " 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) || 250", + " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1000", " 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 44574409..851816d9 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) || 250", + " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1000", " await custom.sleep(customSleep)", " environment.testfsp2callbacks = (await axios.get(environment.TESTFSP2_SDK_TESTAPI_URL + '/callbacks/{$request.body.quoteId}')).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 dc2a2fbf..5571cd51 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) || 250", + " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1000", " 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) || 250", + " const customSleep = Number.parseFloat(environment.SLEEP_MAX_WAIT_IN_MS) || 1000", " await custom.sleep(customSleep)", " environment.testfsp2callbackst = (await axios.get(environment.TESTFSP2_SDK_TESTAPI_URL + '/callbacks/{$request.body.transferId}')).data", " console.log(environment.testfsp2callbackst)",