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 authored and gyuho committed Aug 18, 2016
1 parent 6a1e3e7 commit 93d13fb
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 @@ -752,14 +752,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 93d13fb

Please sign in to comment.