From 6547a9c734334ac9f4ae509c1c3a87a5bdf9cb3f Mon Sep 17 00:00:00 2001 From: HowJMay Date: Mon, 10 Aug 2020 17:08:19 +0800 Subject: [PATCH] fix(tests): Fix regression tests connection failure Regression tests failed to connect to tangle-accelerator. The URL in testing scripts are using environment variable instead of hard-coded URL now. Fixes #746 --- tests/regression/router-sanitizer.sh | 2 +- tests/regression/run-api.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regression/router-sanitizer.sh b/tests/regression/router-sanitizer.sh index 68b1a2aa..77adff31 100644 --- a/tests/regression/router-sanitizer.sh +++ b/tests/regression/router-sanitizer.sh @@ -33,7 +33,7 @@ for ((i = 0; i < ${#SAN_OPTIONS[@]}; i++)); do done <<<$(nc -U -l $socket | tr '\0' '\n') echo "==============TA has successfully started==============" - python3 tests/regression/runner.py ${remaining_args} --url localhost:${TA_PORT} + python3 tests/regression/runner.py ${remaining_args} --url ${TA_HOST}:${TA_PORT} rc=$? if [ $rc -ne 0 ]; then diff --git a/tests/regression/run-api.sh b/tests/regression/run-api.sh index 2e348ddd..6cf84e83 100755 --- a/tests/regression/run-api.sh +++ b/tests/regression/run-api.sh @@ -35,7 +35,7 @@ for ((i = 0; i < ${#OPTIONS[@]}; i++)); do done <<<$(nc -U -l $socket | tr '\0' '\n') echo "==============TA has successfully started==============" - python3 tests/regression/runner.py ${remaining_args} --url localhost:${TA_PORT} + python3 tests/regression/runner.py ${remaining_args} --url ${TA_HOST}:${TA_PORT} rc=$? if [ $rc -ne 0 ]; then