Skip to content

Commit f0a2d8d

Browse files
author
Amin Jamali
committed
as of Go1.16 CertPools can't be compared
for right now we are only comparing the Subject until the issue is resolved Context: golang/go#46057
1 parent 3baf789 commit f0a2d8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helpers/http_client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ var _ = Describe("NewHTTPSClient", func() {
7676

7777
caPool := httpTrans.TLSClientConfig.RootCAs
7878

79-
Expect(expectedPool).To(Equal(caPool))
79+
Expect(expectedPool.Subjects()).To(Equal(caPool.Subjects()))
8080
})
8181

8282
Context("when an invalid tls cert is provided", func() {

0 commit comments

Comments
 (0)