Skip to content

Commit 2e2225e

Browse files
committed
fix: update test case for current TLS behavior
The skip_verify test case now expects ServerName to be set to 'localhost' as this is the current behavior in the updated codebase.
1 parent c1e788b commit 2e2225e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

options_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ EKTcWGekdmdDPsHloRNtsiCa697B2O9IFA==
7070
err: errors.New("redis: TLSCertPEMFile and TLSKeyPEMFile URL parameters must be both set or both omitted"),
7171
}, {
7272
url: "rediss://localhost:123/?skip_verify=true",
73-
o: &Options{Addr: "localhost:123", TLSConfig: &tls.Config{InsecureSkipVerify: true}},
73+
o: &Options{Addr: "localhost:123", TLSConfig: &tls.Config{ServerName: "localhost", InsecureSkipVerify: true}},
7474
}, {
7575
url: "redis://:bar@localhost:123",
7676
o: &Options{Addr: "localhost:123", Password: "bar"},

0 commit comments

Comments
 (0)