From 317e65811afdadd810a001967e154f3b937a0705 Mon Sep 17 00:00:00 2001 From: Siroco Date: Sat, 4 Feb 2023 15:48:11 +0100 Subject: [PATCH] Add: Timeout variable on test --- test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test b/test index 8cc2605..8b3ad7d 100755 --- a/test +++ b/test @@ -1,6 +1,7 @@ #!/bin/bash TMP=/tmp/wordpress +TIMEOUT=120 tear_down () { docker-compose stop @@ -24,7 +25,7 @@ echo -n "Espera al servidor web " while ! curl -s localhost:12001 > /dev/null; do echo -n "." cont=$((cont+1)) - if [ "$cont" == 30 ]; then + if [ "$cont" == $TIMEOUT ]; then echo " no responde" tear_down exit 1