forked from TrueCloudLab/certificates
Fix linting errors.
This commit is contained in:
parent
128d07f148
commit
41eff69fb3
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue