From d85205c804cbb8d5672b6271ba32803e8da9d483 Mon Sep 17 00:00:00 2001 From: Levi <141682181+levisingularity@users.noreply.github.com> Date: Thu, 8 Feb 2024 15:26:27 -0300 Subject: [PATCH] Shutdown containers before tests (#67) * Run `docker compose down` before running tests --- scripts/run-tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh index fcbfde9..78f0348 100755 --- a/scripts/run-tests.sh +++ b/scripts/run-tests.sh @@ -6,6 +6,8 @@ OPENFAAS_CONTAINER="openfaas" QUERY_ENGINE_SERVICE="query-engine" +docker compose down + if ! docker ps --format '{{.Names}}' | grep -q "$OPENFAAS_CONTAINER"; then if [ -z "$REMOTE" ]; then docker compose up -d --build --force-recreate