1
0
mirror of https://github.com/redis/go-redis.git synced 2025-09-02 22:01:16 +03:00

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.
This commit is contained in:
ofekshenawa
2025-08-14 10:44:17 +03:00
parent c1e788b6a3
commit 2e2225ec07

View File

@@ -70,7 +70,7 @@ EKTcWGekdmdDPsHloRNtsiCa697B2O9IFA==
err: errors.New("redis: TLSCertPEMFile and TLSKeyPEMFile URL parameters must be both set or both omitted"),
}, {
url: "rediss://localhost:123/?skip_verify=true",
o: &Options{Addr: "localhost:123", TLSConfig: &tls.Config{InsecureSkipVerify: true}},
o: &Options{Addr: "localhost:123", TLSConfig: &tls.Config{ServerName: "localhost", InsecureSkipVerify: true}},
}, {
url: "redis://:bar@localhost:123",
o: &Options{Addr: "localhost:123", Password: "bar"},