mirror of https://github.com/docker/docs.git
replace sleep with retry
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
cf2d7b12b1
commit
5974a4a509
|
|
@ -188,8 +188,7 @@ function teardown() {
|
|||
|
||||
# Restart node-0
|
||||
docker_host start ${DOCKER_CONTAINERS[0]}
|
||||
sleep 6
|
||||
[[ $(docker_swarm info | grep -c "Status: Unhealthy") -eq 0 ]]
|
||||
retry 5 1 eval "test \"$(docker_swarm info | grep -c \"Status: Unhealthy\" | wc -l)\" = '0'"
|
||||
|
||||
# Stop node-1
|
||||
docker_host stop ${DOCKER_CONTAINERS[1]}
|
||||
|
|
|
|||
Loading…
Reference in New Issue