commit 11afdbc488f30bf214ef9f176e4ac1f36056391f parent 371947180da6964f4b665a6bdc196a4d35e1657f Author: Christian Grothoff <christian@grothoff.org> Date: Sat, 14 Sep 2024 21:06:43 +0200 -fix endpoint name Diffstat:
| M | src/auditor/test-auditor.sh | | | 64 | ++++++++++++++++++++++++++++++++-------------------------------- |
1 file changed, 32 insertions(+), 32 deletions(-)
diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh @@ -336,7 +336,7 @@ function run_audit () { sleep 0.1 OK=0 # exchange - wget "http://localhost:8081/version" \ + wget "http://localhost:8081/config" \ -o /dev/null \ -O /dev/null \ >/dev/null \ @@ -403,40 +403,40 @@ function full_reload() function run_auditor_httpd() { echo -n "Starting auditor..." - taler-auditor-httpd \ - -c "${CONF}" \ - -L INFO \ - 2> "${MY_TMP_DIR}/auditor-httpd.err" & - APID=$! - - # Wait for all services to be available - for n in $(seq 1 50) - do - echo -n "." - sleep 0.1 - OK=0 - # auditor - wget "http://localhost:8083/version" \ - -o /dev/null \ - -O /dev/null \ - >/dev/null \ - || continue - OK=1 - break - done - echo "... DONE." - export CONF + taler-auditor-httpd \ + -c "${CONF}" \ + -L INFO \ + 2> "${MY_TMP_DIR}/auditor-httpd.err" & + APID=$! + + # Wait for auditor service to be available + for n in $(seq 1 50) + do + echo -n "." + sleep 0.2 + OK=0 + # auditor + wget "http://localhost:8083/config" \ + -o /dev/null \ + -O /dev/null \ + >/dev/null \ + || continue + OK=1 + break + done + echo "... DONE." + export CONF } function stop_auditor_httpd() { -if [ -n "${APID:-}" ] - then - echo -n "Stopping auditor $APID..." - kill -TERM "$APID" - wait "$APID" || true - echo "DONE" - unset APID - fi + if [ -n "${APID:-}" ] + then + echo -n "Stopping auditor $APID..." + kill -TERM "$APID" + wait "$APID" || true + echo "DONE" + unset APID + fi } function check_auditor_running() {