mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-11-23 09:12:15 +01:00
Extend timeout for restart test
This commit is contained in:
parent
c821d809f6
commit
52b7a51ca2
@ -51,10 +51,10 @@ for domain in "${domains[@]}"; do
|
|||||||
|
|
||||||
# Check if container restarted
|
# Check if container restarted
|
||||||
timeout="$(date +%s)"
|
timeout="$(date +%s)"
|
||||||
timeout="$((timeout + 60))"
|
timeout="$((timeout + 120))"
|
||||||
until grep "$domain" "${TRAVIS_BUILD_DIR}"/test/tests/container_restart/docker_event_out.txt; do
|
until grep "$domain" "${TRAVIS_BUILD_DIR}"/test/tests/container_restart/docker_event_out.txt; do
|
||||||
if [[ "$(date +%s)" -gt "$timeout" ]]; then
|
if [[ "$(date +%s)" -gt "$timeout" ]]; then
|
||||||
echo "Container $domain didn't restart in under one minute."
|
echo "Container $domain didn't restart in under two minute."
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
|
Loading…
Reference in New Issue
Block a user