Skip to content

Commit af6f7fb

Browse files
Update .github/workflows/full-test-jsonl.yml
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 50fbd41 commit af6f7fb

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/full-test-jsonl.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,21 @@ jobs:
6767
docker logs -f $CONTAINER_NAME &
6868
LOGS_PID=$!
6969
70-
SECONDS=0
70+
ELAPSED=0
7171
TIMEOUT=360
7272
73-
while [ $SECONDS -lt $TIMEOUT ]; do
73+
while [ "$ELAPSED" -lt "$TIMEOUT" ]; do
7474
HEALTH_STATUS=$(docker inspect --format='{{.State.Health.Status}}' $CONTAINER_NAME 2>/dev/null || echo "unknown")
7575
7676
if [ "$HEALTH_STATUS" = "healthy" ]; then
77-
echo "Container is healthy after $SECONDS seconds"
77+
echo "Container is healthy after ${ELAPSED} seconds"
7878
kill $LOGS_PID 2>/dev/null || true
7979
exit 0
8080
fi
8181
82-
echo "Health status: $HEALTH_STATUS (elapsed: ${SECONDS}s)"
82+
echo "Health status: $HEALTH_STATUS (elapsed: ${ELAPSED}s)"
8383
sleep 10
84-
SECONDS=$((SECONDS + 10))
84+
ELAPSED=$((ELAPSED + 10))
8585
done
8686
8787
kill $LOGS_PID 2>/dev/null || true

0 commit comments

Comments
 (0)