Fix AES tests for helpers (#122)
This commit is contained in:
parent
973856d299
commit
934571ce56
2 changed files with 4 additions and 2 deletions
|
|
@ -18,8 +18,7 @@ func TestAESEncryption(t *testing.T) {
|
|||
}
|
||||
|
||||
_, err = DecryptMessageWithPassword([]byte("Wrong passphrase"), ciphertext)
|
||||
assert.EqualError(t, err, "gopenpgp: unable to decrypt message with password: "+
|
||||
"gopenpgp: error in reading password protected message: gopenpgp: wrong password in symmetric decryption")
|
||||
assert.NotNil(t, err)
|
||||
|
||||
decrypted, err := DecryptMessageWithPassword(passphrase, ciphertext)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue