:-'Generic Commit'
Some checks failed
Build-Test-Publish / Build (push) Failing after 27s

This commit is contained in:
Your Name
2025-05-30 20:47:51 +12:00
parent a50405a5de
commit 61b3530aa0

View File

@@ -77,19 +77,31 @@ fi
#------------------------------------------------------------------------------------------------
title "Running tests"
# clear any existing containers.
docker compose -f "${COMPOSE_FILE}" down
docker compose -f "${COMPOSE_FILE}" rm -v
# run the container.
docker compose -f "${COMPOSE_FILE}" up -d
# wait a bit.
sleep 1
# wait until healthy.
wait_for_container "sos-test"
if ! wait_for_container "sos-test"; then
echo "----------------------------------------"
echo "Container sos-test is not healthy"
echo "----------------------------------------"
docker logs sos-test
docker inspect sos-test
die "Container sos-test is not healthy"
fi
# run the tests.
"${SCRIPT_DIR}/test.sh" "http://localhost:7703"
RESULT=$?
# clean up.
docker compose -f "${COMPOSE_FILE}" down
docker compose -f "${COMPOSE_FILE}" rm -v