From fc9c5d70e7cbcc7a744ad2951a2ee218d1569ad4 Mon Sep 17 00:00:00 2001 From: Peeyush Gupta Date: Wed, 10 Jun 2015 14:39:31 +0530 Subject: [PATCH] Fixing errors in stress test Signed-off-by: Peeyush Gupta --- test/stress/stress.bats | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/stress/stress.bats b/test/stress/stress.bats index 40ff9665e5..3543598b91 100644 --- a/test/stress/stress.bats +++ b/test/stress/stress.bats @@ -50,14 +50,13 @@ function wait_containers_exit { # Start N engines. start_docker_with_busybox $NODES - # Start the manager and wait until all nodes join the cluster. + # Start the manager swarm_manage - wait_until_swarm_joined $NODES # Verify that Swarm can see all the nodes. run docker_swarm info [ "$status" -eq 0 ] - [[ "${lines[3]}" == *"Nodes: $NODES" ]] + [[ "$output" =~ "Nodes: $NODES" ]] # Start the containers (random sleeps). start_containers $CONTAINERS