From def6bab7f42ede156c62fec74d2419d4074b3097 Mon Sep 17 00:00:00 2001 From: James Campbell Date: Wed, 18 Jun 2025 03:30:27 -0400 Subject: [PATCH] Add a pause after deploying test db containers as a temporary kludge --- tests/run-tests.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 0f1e1a2..897d49b 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -41,6 +41,14 @@ do # Specify the version we're testing against export PGTAG="${images["$version"]}" + # Start the db container first and wait a moment for it to initialize + # This isn't perfect, but if the health check catches PostgreSQL when it's + # first being initialized, the agent can fail to connect. + # A better solution would probably be to make the agent retry more. + docker compose up -d db + + sleep 2 + # Start the containers docker compose up --exit-code-from=agent agent rc=$?