aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/shhapi/api_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'whisper/shhapi/api_test.go')
-rw-r--r--whisper/shhapi/api_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/whisper/shhapi/api_test.go b/whisper/shhapi/api_test.go
index d2890a9a3..60b6fbd04 100644
--- a/whisper/shhapi/api_test.go
+++ b/whisper/shhapi/api_test.go
@@ -253,7 +253,7 @@ func TestUnmarshalPostArgs(t *testing.T) {
if a.FilterID != 64 {
t.Fatalf("wrong FilterID: %d.", a.FilterID)
}
- if bytes.Compare(a.PeerID[:], a.Topic[:]) != 0 {
+ if !bytes.Equal(a.PeerID[:], a.Topic[:]) {
t.Fatalf("wrong PeerID: %x.", a.PeerID)
}
}