Update error messages in passwordDecrypt (#124)
This commit is contained in:
parent
cba6683c62
commit
cd4adae9f2
2 changed files with 13 additions and 3 deletions
|
|
@ -18,7 +18,7 @@ func TestAESEncryption(t *testing.T) {
|
|||
}
|
||||
|
||||
_, err = DecryptMessageWithPassword([]byte("Wrong passphrase"), ciphertext)
|
||||
assert.NotNil(t, err)
|
||||
assert.Containsf(t, err.Error(), "wrong password", "expected error containing 'wrong password', got %s", err)
|
||||
|
||||
decrypted, err := DecryptMessageWithPassword(passphrase, ciphertext)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue