From deb2c97e055670934f623ba1fdb67dd1d9d763f3 Mon Sep 17 00:00:00 2001 From: Domingo Dirutigliano Date: Fri, 7 Mar 2025 23:39:18 +0100 Subject: [PATCH] wait server on tests --- tests/run_tests.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/run_tests.sh b/tests/run_tests.sh index a4d4766..b62d289 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -8,6 +8,11 @@ ERROR=0 pip3 install -r requirements.txt +until curl --output /dev/null --silent --fail http://localhost:4444/api/status; do + printf '.' + sleep 1 +done + echo "Running standard API test" python3 api_test.py -p $PASSWORD || ERROR=1 echo "Running Netfilter Regex TCP ipv4"