Skip to content

Commit

Permalink
Merging pull request 476
Browse files Browse the repository at this point in the history
Signed-off-by: Lukáš Doktor <[email protected]>

* github.com:confidential-containers/operator:
  ci: Fix unintended loop behavior when checking docker registry health
  • Loading branch information
ldoktor committed Dec 21, 2024
2 parents 511f62a + db90e18 commit 9b717b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/operator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ start_local_registry() {
if ! curl -s localhost:5000; then
docker start "$registry_container" >/dev/null
local cnt=0
while ! curl -s localhost:5000 -o $cnt -lt 5; do
while ! curl -s localhost:5000 && [ $cnt -lt 5 ]; do
sleep 1
cnt=$(($cnt+1))
cnt=$((cnt + 1))
done
[ $cnt -ne 5 ]
fi
Expand Down

0 comments on commit 9b717b3

Please sign in to comment.