config/secrets/box: fix dropped test error (#1494)
This commit is contained in:
parent
3324d140c0
commit
900b2d24f9
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user