Skip to content

Commit

Permalink
integration: NewClusterV3 should launch cluster before creating clients
Browse files Browse the repository at this point in the history
  • Loading branch information
hongchaodeng committed Aug 18, 2016
1 parent 8021487 commit 5630a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -837,14 +837,14 @@ 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 {
t.Fatalf("cannot create client: %v", err)
}
clus.clients = append(clus.clients, client)
}
clus.Launch(t)

return clus
}
Expand Down

0 comments on commit 5630a76

Please sign in to comment.