diff --git a/test/integration/helpers.bash b/test/integration/helpers.bash index 95648a1342..59fe6fd69d 100644 --- a/test/integration/helpers.bash +++ b/test/integration/helpers.bash @@ -100,7 +100,7 @@ function swarm_join() { SWARM_JOIN_PID[$i]=$! ((++i)) done - retry 30 1 [ `docker_swarm info | grep -q "Nodes: $i"` -eq 0 ] + retry 30 1 [ -n $(docker_swarm info | grep -q "Nodes: $i") ] } # Stops the manager.