diff --git a/test/utils/deployment.go b/test/utils/deployment.go index 06725c1ba1f..1977975cc93 100644 --- a/test/utils/deployment.go +++ b/test/utils/deployment.go @@ -18,7 +18,6 @@ package utils import ( "context" - "errors" "fmt" "time" diff --git a/test/utils/pki_helpers.go b/test/utils/pki_helpers.go index f944865d772..06c3290493d 100644 --- a/test/utils/pki_helpers.go +++ b/test/utils/pki_helpers.go @@ -23,7 +23,7 @@ import ( "crypto/x509" "crypto/x509/pkix" "encoding/pem" - "errors" + "fmt" "math" "math/big" "time" @@ -58,10 +58,10 @@ func NewSignedCert(cfg *certutil.Config, key crypto.Signer, caCert *x509.Certifi return nil, err } if len(cfg.CommonName) == 0 { - return nil, errors.New("must specify a CommonName") + return nil, fmt.Errorf("must specify a CommonName") } if len(cfg.Usages) == 0 { - return nil, errors.New("must specify at least one ExtKeyUsage") + return nil, fmt.Errorf("must specify at least one ExtKeyUsage") } certTmpl := x509.Certificate{