From ce2be0170ce7c938f8078b0d081a484d07c9fc84 Mon Sep 17 00:00:00 2001
From: "Tsepelakis, Sotirios" <sotirios.tsepelakis@tuwien.ac.at>
Date: Tue, 8 Oct 2024 15:28:50 +0200
Subject: [PATCH] =?UTF-8?q?=E2=8F=B3=20Tests:=20wait=20for=20docker=20serv?=
 =?UTF-8?q?ices?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* Wait for services to be up before running tests. This is important, especially for OpenSearch
* Generally depends on the CPU power of the hosting machine, thus this is an extra protective measure
---
 run-tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/run-tests.sh b/run-tests.sh
index 7a0b646..b02891a 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -40,7 +40,7 @@ if [[ ${keep_services} -eq 0 ]]; then
 fi
 
 export LC_TIME=en_US.UTF-8
-eval "$(docker-services-cli up --db "${DB:-postgresql}" --search "${SEARCH:-opensearch}" --mq "${MQ:-rabbitmq}" --cache "${CACHE:-redis}" --env)"
+eval "$(docker-services-cli up --db "${DB:-postgresql}" --search "${SEARCH:-opensearch}" --mq "${MQ:-rabbitmq}" --cache "${CACHE:-redis}" --env --no-wait)"
 
 # Note: expansion of pytest_args looks like below to not cause an unbound
 # variable error when 1) "nounset" and 2) the array is empty.
-- 
GitLab