integration: NewClusterV3 should launch cluster before creating clients

This commit is contained in:
Hongchao Deng
2016-08-18 13:25:17 -07:00
committed by Gyu-Ho Lee
parent 6a1e3e73dd
commit 93d13fb5b4

View File

@@ -752,6 +752,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 {
@@ -759,7 +760,6 @@ func NewClusterV3(t *testing.T, cfg *ClusterConfig) *ClusterV3 {
}
clus.clients = append(clus.clients, client)
}
clus.Launch(t)
return clus
}