Skip to content

Commit

Permalink
[tests] fix shellcheck.
Browse files Browse the repository at this point in the history
  • Loading branch information
shizunge committed Dec 6, 2024
1 parent 7ccaa6e commit 045d1a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/spec_gantry_test_helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,7 @@ _start_registry() {
"${REGISTRY_IMAGE}" 2>&1); then
local STATUS=
while true; do
STATUS=$(docker container inspect "${CID}" --format '{{.State.Status}}' 2>&1)
[ "$?" != "0" ] && break;
STATUS=$(docker container inspect "${CID}" --format '{{.State.Status}}' 2>&1) || break;
[ "${STATUS}" = "running" ] && break;
_test_check_timeout "60" "${START_TIME}" "_start_registry wait registry running" || return 1
sleep 1
Expand Down

0 comments on commit 045d1a5

Please sign in to comment.