Skip to content

Commit 7629aa0

Browse files
committed
fix: custom dial test for HTTPS
1 parent 0c73efa commit 7629aa0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/custom_dial_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func TestCustomHTTPDialContext(t *testing.T) {
9292
port := env.HttpPort
9393
var tlsConfig *tls.Config
9494
if useSSL {
95-
port = env.SslPort
95+
port = env.HttpsPort
9696
tlsConfig = &tls.Config{}
9797
}
9898
connector := clickhouse.Connector(&clickhouse.Options{
@@ -106,9 +106,6 @@ func TestCustomHTTPDialContext(t *testing.T) {
106106
DialContext: func(ctx context.Context, addr string) (net.Conn, error) {
107107
dialCount++
108108
var d net.Dialer
109-
if tlsConfig != nil {
110-
return tls.DialWithDialer(&net.Dialer{Timeout: time.Duration(5) * time.Second}, "tcp", addr, tlsConfig)
111-
}
112109
return d.DialContext(ctx, "tcp", addr)
113110
},
114111
TLS: tlsConfig,

0 commit comments

Comments
 (0)