Skip to content

Commit

Permalink
fix(tests): Fix regression tests connection failure
Browse files Browse the repository at this point in the history
Regression tests failed to connect to tangle-accelerator.
The URL in testing scripts are using environment variable
instead of hard-coded URL now.

Fixes DLTcollab#746
  • Loading branch information
howjmay committed Aug 10, 2020
1 parent 6d83549 commit 6547a9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/regression/router-sanitizer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/regression/run-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6547a9c

Please sign in to comment.