Skip to content

Commit

Permalink
fix: change condition to include publish_ready: null
Browse files Browse the repository at this point in the history
  • Loading branch information
kyungeunni committed Jun 7, 2024
1 parent ef91669 commit 548bf09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/smoke/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ healthcheck() {
RES=$(curl_fail -H "${APM_AUTH_HEADER}" ${APM_SERVER_URL}) || RC=$?
if [ $RC -ne 0 ]; then echo "${RES}"; fi
local PUBLISH_READY=$(echo ${RES}| jq '.publish_ready')
if [[ ! ${PUBLISH_READY} ]]; then
if [[ ${PUBLISH_READY} != true ]]; then
local MAX_RETRIES=10
if [[ ${1} -gt 0 ]] && [[ ${1} -lt ${MAX_RETRIES} ]]; then
echo "-> APM Server isn't ready to receive events, retrying (${1}/${MAX_RETRIES})..."
Expand Down

0 comments on commit 548bf09

Please sign in to comment.