Skip to content

Commit

Permalink
Don't explicitly set NextProtos since we're calling ConfigureServer/C…
Browse files Browse the repository at this point in the history
…onfigureTransport manually
  • Loading branch information
jefferai committed Oct 31, 2017
1 parent 949549d commit e326543
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vault/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,6 @@ func NewTestCluster(t testing.T, base *CoreConfig, opts *TestClusterOptions) *Te
RootCAs: testCluster.RootCAs,
ClientCAs: testCluster.RootCAs,
ClientAuth: tls.VerifyClientCertIfGiven,
NextProtos: []string{"h2", "http/1.1"},
GetCertificate: certGetter.GetCertificate,
}
tlsConfig.BuildNameToCertificate()
Expand Down Expand Up @@ -1251,7 +1250,7 @@ func NewTestCluster(t testing.T, base *CoreConfig, opts *TestClusterOptions) *Te

getAPIClient := func(port int, tlsConfig *tls.Config) *api.Client {
transport := cleanhttp.DefaultPooledTransport()
transport.TLSClientConfig = tlsConfig
transport.TLSClientConfig = tlsConfig.Clone()
if err := http2.ConfigureTransport(transport); err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit e326543

Please sign in to comment.