Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
marevol committed Feb 9, 2024
1 parent a77d94c commit 99d941d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/resources/before_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 99d941d

Please sign in to comment.