Browse Source

integration: NewClusterV3 should launch cluster before creating clients

Hongchao Deng 9 years ago
parent
commit
5630a76766
1 changed files with 1 additions and 1 deletions
  1. 1 1
      integration/cluster.go

+ 1 - 1
integration/cluster.go

@@ -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
 }