aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-12-15 00:40:49 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-12-15 00:40:49 +0800
commit2573094df2b3f2fad03ce465694f24e9899a31e4 (patch)
tree7f3b1a83dd531944d82ccd243ef5a51cf63f6f4a /p2p/discover
parent745026b7b4fbbb3036a3d456a26db35fac4e3374 (diff)
downloadgo-tangerine-2573094df2b3f2fad03ce465694f24e9899a31e4.tar
go-tangerine-2573094df2b3f2fad03ce465694f24e9899a31e4.tar.gz
go-tangerine-2573094df2b3f2fad03ce465694f24e9899a31e4.tar.bz2
go-tangerine-2573094df2b3f2fad03ce465694f24e9899a31e4.tar.lz
go-tangerine-2573094df2b3f2fad03ce465694f24e9899a31e4.tar.xz
go-tangerine-2573094df2b3f2fad03ce465694f24e9899a31e4.tar.zst
go-tangerine-2573094df2b3f2fad03ce465694f24e9899a31e4.zip
p2p/discover, p2p/discv5: use flexible comparison for IPs
Diffstat (limited to 'p2p/discover')
-rw-r--r--p2p/discover/udp_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/discover/udp_test.go b/p2p/discover/udp_test.go
index 53cfac6f9..8bca37ffe 100644
--- a/p2p/discover/udp_test.go
+++ b/p2p/discover/udp_test.go
@@ -374,7 +374,7 @@ func TestUDP_successfulPing(t *testing.T) {
if n.ID != rid {
t.Errorf("node has wrong ID: got %v, want %v", n.ID, rid)
}
- if !bytes.Equal(n.IP, test.remoteaddr.IP) {
+ if !n.IP.Equal(test.remoteaddr.IP) {
t.Errorf("node has wrong IP: got %v, want: %v", n.IP, test.remoteaddr.IP)
}
if int(n.UDP) != test.remoteaddr.Port {