mirror of
https://github.com/wneessen/go-mail.git
synced 2024-12-22 18:50:37 +01:00
fix: tests
This commit is contained in:
parent
4a3dbddaff
commit
4b21cc617b
4 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue