Skip to content

Commit

Permalink
tweak wait for gateways ha test
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Indenbaum <[email protected]>
  • Loading branch information
Alexander Indenbaum authored and baum committed Oct 23, 2024
1 parent 14f12d1 commit 76aed58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/ha/wait_gateways.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh
set -ex
SCALE=2
echo CLI_TLS_ARGS $CLI_TLS_ARGS
# Check if argument is provided
Expand All @@ -16,7 +18,7 @@ for i in $(seq $SCALE); do
sleep 1 # Adjust the sleep duration as needed
GW_NAME=$(docker ps --format '{{.ID}}\t{{.Names}}' | awk '$2 ~ /nvmeof/ && $2 ~ /'$i'/ {print $1}')
container_status=$(docker inspect -f '{{.State.Status}}' "$GW_NAME")
if [ "$container_status" == "running" ]; then
if [ "$container_status" = "running" ]; then
echo "Container $i $GW_NAME is now running."
else
echo "Container $i $GW_NAME is still not running. Waiting..."
Expand Down

0 comments on commit 76aed58

Please sign in to comment.