From 99d941d1464408edf26187b40ba18ec7d1b68eae Mon Sep 17 00:00:00 2001 From: Shinsuke Sugaya Date: Fri, 9 Feb 2024 22:29:13 +0900 Subject: [PATCH] update script --- src/test/resources/before_script.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/resources/before_script.sh b/src/test/resources/before_script.sh index 8ce26b249..bc9e57dc0 100644 --- a/src/test/resources/before_script.sh +++ b/src/test/resources/before_script.sh @@ -10,7 +10,9 @@ tail ${temp_file} error_count=0 while true ; do status=$(curl -w '%{http_code}\n' -s -o /dev/null "http://localhost:8080/api/v1/health") - if [[ x"${status}" != x200 ]] ; then + if [[ x"${status}" = x200 ]] ; then + break + else error_count=$((error_count + 1)) fi if [[ ${error_count} -ge 180 ]] ; then