aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisperv5/peer_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'whisper/whisperv5/peer_test.go')
-rw-r--r--whisper/whisperv5/peer_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/whisper/whisperv5/peer_test.go b/whisper/whisperv5/peer_test.go
index 88da59bff..34e2ec255 100644
--- a/whisper/whisperv5/peer_test.go
+++ b/whisper/whisperv5/peer_test.go
@@ -207,7 +207,7 @@ func checkPropagation(t *testing.T) {
func validateMail(t *testing.T, index int, mail []*ReceivedMessage) bool {
var cnt int
for _, m := range mail {
- if bytes.Compare(m.Payload, expectedMessage) == 0 {
+ if bytes.Equal(m.Payload, expectedMessage) {
cnt++
}
}