From fc140dbe0566b86c4536bfd6c2e070abcde8513e Mon Sep 17 00:00:00 2001 From: Nikolay Mahotkin Date: Fri, 17 Jul 2015 14:24:58 +0300 Subject: [PATCH] Changing check of mistral availability in functional tests Depends-On: I7170121a1216d9d72a43e552db1864a58e4c6237 Change-Id: Ib0368f15b0b47dca377bb55c060de4837458a9e5 --- functionaltests/run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functionaltests/run_tests.sh b/functionaltests/run_tests.sh index 314dd67d..d616d36d 100644 --- a/functionaltests/run_tests.sh +++ b/functionaltests/run_tests.sh @@ -15,7 +15,7 @@ # How many seconds to wait for the API to be responding before giving up API_RESPONDING_TIMEOUT=20 -if ! timeout ${API_RESPONDING_TIMEOUT} sh -c "while ! curl -s http://127.0.0.1:8989/v2/ 2>/dev/null | grep -q 'Authentication required' ; do sleep 1; done"; then +if ! timeout ${API_RESPONDING_TIMEOUT} sh -c "until curl --output /dev/null --silent --head --fail http://localhost:8989; do sleep 1; done"; then echo "Mistral API failed to respond within ${API_RESPONDING_TIMEOUT} seconds" exit 1 fi