Skip to content

Commit 97df9bd

Browse files
committed
Timeout if seconds are greater than or equal to the limit.
1 parent aa9ec46 commit 97df9bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/wait-for-hosts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ wait_for_host() {
6262
fi
6363
TIME_LIMIT=$(($(date +%s)+TIMEOUT))
6464
while ! OUTPUT="$(connect_to_service "$HOST" "$PORT" 2>&1)"; do
65-
if [ "$(date +%s)" -gt "$TIME_LIMIT" ]; then
65+
if [ "$(date +%s)" -ge "$TIME_LIMIT" ]; then
6666
quiet_echo 'timeout'
6767
if [ -n "$OUTPUT" ]; then
6868
quiet_echo "$OUTPUT"

0 commit comments

Comments
 (0)