Skip to content

Commit

Permalink
test for liveliness in a way that is not config dependant
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-dull committed Oct 4, 2024
1 parent 8cec983 commit fdce082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
cmd="exit 1"
for ct in {0..9}
do
STATE=$(curl -sS http://localhost:2442/state || true)
if [ "$(echo $STATE | jq -r .backend_module)" != "pyshelve_backend.PyShelveBackend" ]; then
OK=$(curl -Ss -o /dev/null -w "%{http_code}" || true)
if [ ${OK} -ne 200 ]; then
sleep 1
else
cmd="exit 0"
Expand Down

0 comments on commit fdce082

Please sign in to comment.