Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'helpers_test.go')
-rw-r--r--helpers_test.go10
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