From 35f1f4630b23a7ddbd3df9cd030ad1e83db1389d Mon Sep 17 00:00:00 2001 From: Bruno Bonfils Date: Thu, 2 Jun 2022 11:47:19 +0200 Subject: [PATCH] test: Make curl silent --- test_keycloak_init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_keycloak_init.sh b/test_keycloak_init.sh index bee8830..bd4c30a 100755 --- a/test_keycloak_init.sh +++ b/test_keycloak_init.sh @@ -14,7 +14,7 @@ function keycloak_start() { echo "Starting keycloak docker container" docker run -d --name unittest_keycloak -e KEYCLOAK_ADMIN="${KEYCLOAK_ADMIN}" -e KEYCLOAK_ADMIN_PASSWORD="${KEYCLOAK_ADMIN_PASSWORD}" -p "${KEYCLOAK_PORT}:8080" "${KEYCLOAK_DOCKER_IMAGE}" start-dev SECONDS=0 - until curl localhost:$KEYCLOAK_PORT; do + until curl --silent --output /dev/null localhost:$KEYCLOAK_PORT; do sleep 5; if [ ${SECONDS} -gt 180 ]; then echo "Timeout exceeded";