From 166d218a156c5e54cc5eef884c349e69e1de589f Mon Sep 17 00:00:00 2001 From: Semen Bezrukov Date: Wed, 23 Oct 2019 16:05:43 +0300 Subject: [PATCH] Update Travis test --- test.sh | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/test.sh b/test.sh index 7f537d7..8117b02 100755 --- a/test.sh +++ b/test.sh @@ -9,21 +9,12 @@ fi # Run test environment docker-compose -p ds -f $file up -d -wakeup_attempts=30 -wakeup_timeout=5 +wakeup_timeout=30 -for ((i=0; i<$wakeup_attempts; i++)) -do - # Get documentserver healthcheck status - healthcheck_res=$(wget --no-check-certificate -qO - localhost/healthcheck) - - if [[ $healthcheck_res == "true" ]]; then - break - else - echo "Wait for service wake up #$i" - sleep $wakeup_timeout - fi -done +# Get documentserver healthcheck status +echo "Wait for service wake up" +sleep $wakeup_timeout +healthcheck_res=$(wget --no-check-certificate -qO - localhost/healthcheck) # Fail if it isn't true if [[ $healthcheck_res == "true" ]]; then @@ -33,4 +24,4 @@ else exit 1 fi -docker-compose -p ds -f $file down \ No newline at end of file +docker-compose -p ds -f $file down