Skip to content

Commit

Permalink
fix(mojaloop/#3526): v15.2.0 release fixes for IaC env (#131)
Browse files Browse the repository at this point in the history
* fix: increase wait time for sim callback

* chore: add more wait time to possible failing tests
  • Loading branch information
aaronreynoza authored Nov 15, 2023
1 parent 0e62e1a commit c3d80fb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion collections/hub/golden_path/settlement_cgs/newsetcgs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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;",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
"}",
Expand Down Expand Up @@ -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",
"}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
"}",
Expand Down Expand Up @@ -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",
" ",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;",
Expand Down Expand Up @@ -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)",
Expand Down

0 comments on commit c3d80fb

Please sign in to comment.