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