mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Corrected wrong error requirement
This commit is contained in:
parent
2e129b9dc8
commit
daab24eb2f
1 changed files with 2 additions and 2 deletions
|
|
@ -17,8 +17,8 @@ func TestLoadCertificates(t *testing.T) {
|
|||
if certificate, err := LoadCertificate(&TestCert, &missingTestkey, nil); certificate != nil || err == nil {
|
||||
t.Errorf("Failure: No Failure while loading certificate using missing key.")
|
||||
}
|
||||
if certificate, err := LoadCertificate(&TestCert, &Testkey, &Passphrase); certificate == nil || err != nil {
|
||||
t.Errorf("Failure: Couldn't load supposedly valid certificate with passphrase.")
|
||||
if certificate, err := LoadCertificate(&TestCert, &Testkey, &Passphrase); certificate != nil || err == nil {
|
||||
t.Errorf("Failure: Could load unprotected valid certificate with passphrase.")
|
||||
}
|
||||
if certificate, err := LoadCertificate(&TestCert, &missingTestkey, &Passphrase); certificate != nil || err == nil {
|
||||
t.Errorf("Failure: No Failure while loading certificate using missing key with passphrase.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue