Other: fix custom message on decryption error for externally encrypted message

This commit is contained in:
Jakub Cuth
2021-04-22 12:28:54 +00:00
committed by James Houlahan
parent 14d42b5e76
commit ebf724412b
3 changed files with 128 additions and 54 deletions

View File

@ -291,7 +291,7 @@ func (matcher decryptsToMatcher) match(t *testing.T, have string) {
dec, err := matcher.kr.Decrypt(haveMsg, nil, crypto.GetUnixTime())
require.NoError(t, err)
assert.Equal(t, matcher.want, dec.GetString())
assert.Equal(t, matcher.want, string(dec.GetBinary()))
}
func decryptsTo(kr *crypto.KeyRing, want string) decryptsToMatcher {