Skip to content

Commit

Permalink
Merge pull request #6222 from hongchaodeng/master
Browse files Browse the repository at this point in the history
integration: NewClusterV3() should launch cluster before creating clients
  • Loading branch information
xiang90 authored Aug 18, 2016
2 parents 8021487 + 5630a76 commit 5e9fe0d
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 5e9fe0d

Please sign in to comment.