1
0

Shorten the test functions timeout

This commit is contained in:
Nicolas Duchon 2018-11-23 03:17:31 +01:00
parent b3e7741c1c
commit 2ea189c165
No known key found for this signature in database
GPG Key ID: 91EF7BB1EECB961A
2 changed files with 5 additions and 5 deletions

@ -20,6 +20,6 @@ Started test web server for le2.wtf
Symlink to le2.wtf certificate has been generated.
The link is pointing to the file ./le2.wtf/fullchain.pem
Started test web server for lim.it,le2.wtf
Symlink for lim.it certificate was not generated under three minutes, timing out.
Symlink for lim.it certificate was not generated under one minute, timing out.
Symlink to le2.wtf certificate has been generated.
The link is pointing to the file ./le2.wtf/fullchain.pem

@ -39,8 +39,8 @@ function wait_for_symlink {
local i=0
local target
until docker exec "$name" [ -L "/etc/nginx/certs/$domain.crt" ]; do
if [ $i -gt 180 ]; then
echo "Symlink for $domain certificate was not generated under three minutes, timing out."
if [ $i -gt 60 ]; then
echo "Symlink for $domain certificate was not generated under one minute, timing out."
return 1
fi
i=$((i + 2))
@ -58,9 +58,9 @@ function wait_for_symlink_rm {
local domain="${1:?}"
local name="${2:?}"
local i=0
if [ $i -gt 120 ]; then
echo "Certificate symlink for $domain was not removed under two minutes, timing out."
until docker exec "$name" [ ! -L "/etc/nginx/certs/$domain.crt" ]; do
if [ $i -gt 60 ]; then
echo "Certificate symlink for $domain was not removed under one minute, timing out."
return 1
fi
i=$((i + 2))