Merge pull request #6222 from hongchaodeng/master

integration: NewClusterV3() should launch cluster before creating clients
release-3.1
Xiang Li 2016-08-18 14:52:04 -07:00 committed by GitHub
commit 5e9fe0dc23
1 changed files with 1 additions and 1 deletions

View File

@ -837,6 +837,7 @@ func NewClusterV3(t *testing.T, cfg *ClusterConfig) *ClusterV3 {
clus := &ClusterV3{
cluster: NewClusterByConfig(t, cfg),
}
clus.Launch(t)
for _, m := range clus.Members {
client, err := NewClientV3(m)
if err != nil {
@ -844,7 +845,6 @@ func NewClusterV3(t *testing.T, cfg *ClusterConfig) *ClusterV3 {
}
clus.clients = append(clus.clients, client)
}
clus.Launch(t)
return clus
}