aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/messages_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-02 20:00:25 +0800
committerobscuren <geffobscura@gmail.com>2015-01-02 20:00:25 +0800
commite2d1d832efe0623539c9d37ca8aee17d44e47067 (patch)
treeae681ba7255a293bf3edc02c30da207bae9ac96a /whisper/messages_test.go
parentd336e24dcec2bb2cb89fff76302882aa82124dc8 (diff)
downloadgo-tangerine-e2d1d832efe0623539c9d37ca8aee17d44e47067.tar
go-tangerine-e2d1d832efe0623539c9d37ca8aee17d44e47067.tar.gz
go-tangerine-e2d1d832efe0623539c9d37ca8aee17d44e47067.tar.bz2
go-tangerine-e2d1d832efe0623539c9d37ca8aee17d44e47067.tar.lz
go-tangerine-e2d1d832efe0623539c9d37ca8aee17d44e47067.tar.xz
go-tangerine-e2d1d832efe0623539c9d37ca8aee17d44e47067.tar.zst
go-tangerine-e2d1d832efe0623539c9d37ca8aee17d44e47067.zip
added nil check
Diffstat (limited to 'whisper/messages_test.go')
-rw-r--r--whisper/messages_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/whisper/messages_test.go b/whisper/messages_test.go
index cba103011..93caa31b3 100644
--- a/whisper/messages_test.go
+++ b/whisper/messages_test.go
@@ -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")
}
}