From 315a3158a954fa7424c2999808d8ab20a08c066d Mon Sep 17 00:00:00 2001 From: N/Ame <173015200+grqz@users.noreply.github.com> Date: Sun, 15 Sep 2024 23:23:04 +1200 Subject: [PATCH] debug --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e557394..5a50294 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -71,9 +71,10 @@ jobs: echo "Waiting for server to be up..." ping() { - until curl -o- --silent --fail http://127.0.0.1:4416/ping 2>&1; do + until FINAL_RESP=$(curl -o- --silent --fail http://127.0.0.1:4416/ping 2>&1); do sleep ${1:-0.5} done + [ -n "$FINAL_RESP" ] && echo $FINAL_RESP || echo "failed to get ping response" } export -f ping PING_RESP=$(timeout 7.5 bash -c ping) || \