Browse Source

Fix test case for docker_api_swarm_test.go

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
Justin Cormack 9 years ago
parent
commit
6dfba780cc
1 changed files with 0 additions and 4 deletions
  1. 0 4
      integration-cli/docker_api_swarm_test.go

+ 0 - 4
integration-cli/docker_api_swarm_test.go

@@ -277,8 +277,6 @@ func (s *DockerSwarmSuite) TestApiSwarmPromoteDemote(c *check.C) {
 		}
 		if i > 100 {
 			c.Errorf("node did not turn into manager")
-		} else {
-			break
 		}
 		time.Sleep(100 * time.Millisecond)
 	}
@@ -296,8 +294,6 @@ func (s *DockerSwarmSuite) TestApiSwarmPromoteDemote(c *check.C) {
 		}
 		if i > 100 {
 			c.Errorf("node did not turn into worker")
-		} else {
-			break
 		}
 		time.Sleep(100 * time.Millisecond)
 	}