From f61dfcc2c74e7eb2d32144a77b468f2b441654a3 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Mon, 27 May 2019 13:07:56 +0300 Subject: [PATCH] Increase retry count/sleep times when waiting for lorax to start the biggest slow down is fetching data for many repositories over a slow network. The previous retry count and sleep times sometimes are not enough on Fedora. --- tests/test_cli.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_cli.sh b/tests/test_cli.sh index 19e943f8..0786b4aa 100755 --- a/tests/test_cli.sh +++ b/tests/test_cli.sh @@ -80,10 +80,10 @@ fi tries=0 until curl -m 15 --unix-socket /run/weldr/api.socket http://localhost:4000/api/status | grep 'db_supported.*true'; do tries=$((tries + 1)) - if [ $tries -gt 20 ]; then + if [ $tries -gt 50 ]; then exit 1 fi - sleep 2 + sleep 5 echo "DEBUG: Waiting for backend API to become ready before testing ..." done;