From fe4163148f417d2f60b13fef05c211eb23754cd8 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Sat, 18 Jul 2015 21:47:41 -0700 Subject: [PATCH] fix docker wait test Signed-off-by: Victor Vieux --- test/integration/api/wait.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/api/wait.bats b/test/integration/api/wait.bats index 86df0ddc26..8a89ada564 100644 --- a/test/integration/api/wait.bats +++ b/test/integration/api/wait.bats @@ -15,7 +15,7 @@ function teardown() { docker_swarm run -d --name test_container busybox sleep 1 # wait until exist(after 1 seconds) - run timeout 5 docker -H $SWARM_HOST wait test_container + run timeout 5 docker -H ${SWARM_HOSTS[0]} wait test_container [ "$status" -eq 0 ] [[ "${output}" == "0" ]] }