Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

remove wait-for-endpoint logs that were only useful during development #757

Merged
merged 1 commit into from
Nov 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions scripts/wait_for_endpoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ CONN_HOLD=${CONN_HOLD:-3}
timeout_exec=$(basename "$(readlink $(which timeout))")
if [ "$timeout_exec" = "busybox" ]
then
log "using busybox"
_using_busybox=1
else
log "not using busybox"
_using_busybox=0
fi

Expand Down Expand Up @@ -43,7 +41,7 @@ do
# connection stays up for $CONN_HOLD seconds.
if [ $_using_busybox -eq 1 ]
then
timeout -t $CONN_HOLD busybox nc $host $port -e busybox sleep $(( $CONN_HOLD + 1 ))
timeout -t $CONN_HOLD busybox nc $host $port -e busybox sleep $(( $CONN_HOLD + 1 )) 2>/dev/null
retval=$?

# busybox-timeout on alpine returns 0 on timeout
Expand All @@ -60,8 +58,6 @@ do
then
log "$endpoint is up. maintained connection for $CONN_HOLD seconds!"
break
else
log "returned value $retval, expecting $expected"
fi

sleep 1
Expand Down