Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shibukazu committed Aug 24, 2024
1 parent bc3f6af commit d4f8c6a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test-runn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ jobs:
run: |
for i in {1..10}; do
STATUS=$(curl -s http://localhost:8080/healthz | jq -r .status)
echo "Health check status: $STATUS"
if [ "$STATUS" == "SERVING" ]; then
echo "Service is healthy!"
exit 0
fi
echo "Waiting for the service to be healthy..."
sleep 3
sleep 5
done
echo "Service did not become healthy in time."
exit 1
Expand Down Expand Up @@ -68,13 +67,12 @@ jobs:
for i in {1..10}; do
MASTER_STATUS=$(curl -s http://localhost:8081/healthz | jq -r .status)
SLAVE_STATUS=$(curl -s http://localhost:8082/healthz | jq -r .status)
echo "Health check status: Master->$STATUS Slave->$SLAVE_STATUS"
if [ "$MASTER_STATUS" == "SERVING" ] && [ "$SLAVE_STATUS" == "SERVING" ]; then
echo "Service is healthy!"
exit 0
fi
echo "Waiting for the service to be healthy..."
sleep 3
sleep 5
done
echo "Service did not become healthy in time."
exit 1
Expand Down

0 comments on commit d4f8c6a

Please sign in to comment.