added nil check

This commit is contained in:
obscuren
2015-01-02 13:00:25 +01:00
parent d336e24dce
commit e2d1d832ef
5 changed files with 8 additions and 39 deletions

View File

@ -40,12 +40,11 @@ func TestMessageEncryptDecrypt(t *testing.T) {
msg1, err := envelope.Open(prv2)
if err != nil {
fmt.Println(err)
t.Error(err)
t.FailNow()
}
if !bytes.Equal(msg1.Payload, data) {
fmt.Println("encryption error. data did not match")
t.FailNow()
t.Error("encryption error. data did not match")
}
}