config/secrets/box: fix dropped test error (#1494)

This commit is contained in:
Lars Lehtonen 2020-04-06 15:09:42 -07:00 committed by GitHub
parent 3324d140c0
commit 900b2d24f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,9 @@ func TestBox(t *testing.T) {
t.Error(err) t.Error(err)
} }
dec, err = alice.Decrypt(enc, secrets.SenderPublicKey(bob.Options().PublicKey)) dec, err = alice.Decrypt(enc, secrets.SenderPublicKey(bob.Options().PublicKey))
if err != nil {
t.Error(err)
}
if !reflect.DeepEqual(dec, bobSecret) { if !reflect.DeepEqual(dec, bobSecret) {
t.Errorf("Alice's decrypted message didn't match Bob's encrypted message %v != %v", bobSecret, dec) t.Errorf("Alice's decrypted message didn't match Bob's encrypted message %v != %v", bobSecret, dec)
} }