Skip to content

Commit

Permalink
Fix test expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblum committed Dec 19, 2023
1 parent e93183d commit c9ea0cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/libkb/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package libkb

import (
"crypto/x509"
"crypto/tls"
"net/http"
"net/url"
"testing"
Expand Down Expand Up @@ -144,7 +144,7 @@ func checkX509Err(t *testing.T, err error) {
return
}

_, ok = b.Err.(x509.UnknownAuthorityError)
_, ok = b.Err.(*tls.CertificateVerificationError)
if !ok {
t.Errorf("url.Error Err field type: %T, expected x509.UnknownAuthorityError", b.Err)
}
Expand Down

0 comments on commit c9ea0cc

Please sign in to comment.