Browse Source

Merge pull request #6911 from mjtrangoni/remove-buildnametocertificate

scrape/target_test.go: remove deprecated function BuildNameToCertificate()
pull/7068/head
Julien Pivotto 5 years ago committed by GitHub
parent
commit
0c4ec8d9dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      scrape/target_test.go

2
scrape/target_test.go

@ -257,7 +257,6 @@ func TestNewHTTPClientCert(t *testing.T) {
tlsConfig := newTLSConfig("server", t)
tlsConfig.ClientAuth = tls.RequireAndVerifyClientCert
tlsConfig.ClientCAs = tlsConfig.RootCAs
tlsConfig.BuildNameToCertificate()
server.TLS = tlsConfig
server.StartTLS()
defer server.Close()
@ -354,7 +353,6 @@ func newTLSConfig(certName string, t *testing.T) *tls.Config {
t.Errorf("Unable to use specified server cert (%s) & key (%v): %s", certPath, keyPath, err)
}
tlsConfig.Certificates = []tls.Certificate{cert}
tlsConfig.BuildNameToCertificate()
return tlsConfig
}

Loading…
Cancel
Save