Fix rescheduling test.

Signed-off-by: Dong Chen <dongluo.chen@docker.com>
This commit is contained in:
Dong Chen 2016-07-19 18:59:08 -07:00
parent ef0aa2aeb2
commit d283e00512
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ function containerRunning() {
docker_host start ${DOCKER_CONTAINERS[0]}
# Wait for node-0 to be healthy
# Failing node refresh interval increases over time. Provide enough retry here.
retry 30 1 eval "test \"$(docker_swarm info | grep \"Status: Unhealthy\" | wc -l)\" = '0'"
retry 30 1 eval "docker_swarm info | grep node-0 -A 5 | grep -q \"Status: Healthy\""
# c1 should still be on node-1
containerRunning "c3" "node-1"