fix: tests

This commit is contained in:
theexiile1305 2024-10-17 16:14:04 +02:00
parent 4a3dbddaff
commit 4b21cc617b
No known key found for this signature in database
GPG key ID: A1BDDE98F2BF6E40
4 changed files with 2 additions and 2 deletions

View file

@ -3371,7 +3371,7 @@ func TestSignWithSMime_ValidECDSAKeyPair(t *testing.T) {
if err := m.SignWithSMimeECDSA(privateKey, certificate, intermediateCertificate); err != nil {
t.Errorf("failed to set sMime. Cause: %v", err)
}
if m.sMime.privateKey.rsa == nil {
if m.sMime.privateKey.ecdsa == nil {
t.Errorf("WithSMimeSinging() - no private key is given")
}
if m.sMime.certificate == nil {

View file

@ -16,7 +16,7 @@ const (
keyRSAFilePath = "dummy-child-key-rsa.pem"
certECDSAFilePath = "dummy-chain-cert-ecdsa.pem"
keyECDSAFilePath = "dummy-child-cert-ecdsa.pem"
keyECDSAFilePath = "dummy-child-key-ecdsa.pem"
)
// getDummyRSACryptoMaterial loads a certificate (RSA) and the associated private key (ECDSA) form local disk for testing purposes