advancedtls: Make test happy on Go1.15 (#4053)
This commit is contained in:

committed by
GitHub

parent
78864797b8
commit
2af65e80c6
@ -867,8 +867,8 @@ func (s) TestGetCertificatesSNI(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("serverConfig.GetCertificate(clientHello) failed: %v", err)
|
||||
}
|
||||
if !cmp.Equal(*gotCertificate, test.wantCert, cmp.AllowUnexported(big.Int{})) {
|
||||
t.Errorf("GetCertificates() = %v, want %v", *gotCertificate, test.wantCert)
|
||||
if !gotCertificate.Leaf.Equal(test.wantCert.Leaf) {
|
||||
t.Errorf("GetCertificates() returned leaf certificate does not match expected (-want +got):\n%s", cmp.Diff(test.wantCert, *gotCertificate, cmp.AllowUnexported(big.Int{})))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user