Skip to content

Commit 753526f

Browse files
committed
fix: harden test-mapeo-config wait logic
1 parent 2b1e46d commit 753526f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/test-mapeo-config.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ wait_for_container() {
5555

5656
# Wait for container to be running
5757
for ((i=1; i<=max_attempts; i++)); do
58-
if [ "$(docker inspect -f {{.State.Running}} "$container_name" 2>/dev/null)" == "true" ]; then
58+
# docker inspect exits non-zero while container is starting/absent; suppress to avoid set -e abort
59+
if [ "$(docker inspect -f {{.State.Running}} "$container_name" 2>/dev/null || true)" == "true" ]; then
5960
break
6061
fi
6162

0 commit comments

Comments
 (0)