diff options
Diffstat (limited to 'helpers_test.go')
-rw-r--r-- | helpers_test.go | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/helpers_test.go b/helpers_test.go index 2e565300..61fa5279 100644 --- a/helpers_test.go +++ b/helpers_test.go @@ -329,13 +329,9 @@ func GetRedirectPageWithCookie(t *testing.T, spec ListenSpec, host, urlsuffix st return TestHTTPSClient.Transport.RoundTrip(req) } -func ClientWithCiphers(ciphers []uint16) (*http.Client, func()) { - tr := &http.Transport{ - TLSClientConfig: &tls.Config{ - RootCAs: TestCertPool, - CipherSuites: ciphers, - }, - } +func ClientWithConfig(tlsConfig *tls.Config) (*http.Client, func()) { + tlsConfig.RootCAs = TestCertPool + tr := &http.Transport{TLSClientConfig: tlsConfig} client := &http.Client{Transport: tr} return client, tr.CloseIdleConnections |