Fix linting errors.

This commit is contained in:
Mariano Cano 2021-02-01 14:22:53 -08:00
parent 128d07f148
commit 41eff69fb3
2 changed files with 2 additions and 1 deletions

View file

@ -28,6 +28,7 @@ func mustPKCS11(t TBTesting) *PKCS11 {
for i := range testCerts {
testCerts[i].Certificates = nil
}
teardown(t, k)
setup(t, k)
return k
}

View file

@ -33,7 +33,7 @@ func TestNew(t *testing.T) {
k.Close()
})
p11Configure = func(config *crypto11.Config) (P11, error) {
if strings.Index(config.Path, "fail") >= 0 {
if strings.Contains(config.Path, "fail") {
return nil, errors.New("an error")
}
return k.p11, nil