diff --git a/revocation/internal/crl/crl_test.go b/revocation/internal/crl/crl_test.go index 3478b4c6..540e7d2e 100644 --- a/revocation/internal/crl/crl_test.go +++ b/revocation/internal/crl/crl_test.go @@ -20,6 +20,7 @@ import ( "crypto/x509" "crypto/x509/pkix" "encoding/asn1" + "errors" "fmt" "io" "math/big" @@ -177,7 +178,7 @@ func TestCertCheckStatus(t *testing.T) { Transport: expectedRoundTripperMock{Body: crlBytes}, }, }) - if r.CRLResults[0].Error != ErrDeltaCRLNotSupported { + if !errors.Is(r.CRLResults[0].Error, ErrDeltaCRLNotSupported) { t.Fatal("expected ErrDeltaCRLNotChecked") } })