diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-12-15 22:51:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-15 22:51:14 +0800 |
commit | 38827dd9ca87c1a8ffab32027400abb6e88f073b (patch) | |
tree | ab4e2aad8db91774baeb1ed6f98997c756d9f7f1 | |
parent | 033763eaf7e2206a49f78f13261a8d115ee2e7d6 (diff) | |
parent | 21fd9f037e38dbfa5e34366f2106e31cede50d4b (diff) | |
download | go-tangerine-38827dd9ca87c1a8ffab32027400abb6e88f073b.tar go-tangerine-38827dd9ca87c1a8ffab32027400abb6e88f073b.tar.gz go-tangerine-38827dd9ca87c1a8ffab32027400abb6e88f073b.tar.bz2 go-tangerine-38827dd9ca87c1a8ffab32027400abb6e88f073b.tar.lz go-tangerine-38827dd9ca87c1a8ffab32027400abb6e88f073b.tar.xz go-tangerine-38827dd9ca87c1a8ffab32027400abb6e88f073b.tar.zst go-tangerine-38827dd9ca87c1a8ffab32027400abb6e88f073b.zip |
Merge pull request #3445 from karalabe/govet-ip-signal
p2p/nat: fix a bytes based net.IP comparison
-rw-r--r-- | p2p/nat/nat_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/p2p/nat/nat_test.go b/p2p/nat/nat_test.go index a079e7a22..469101e99 100644 --- a/p2p/nat/nat_test.go +++ b/p2p/nat/nat_test.go @@ -17,7 +17,6 @@ package nat import ( - "bytes" "net" "testing" "time" @@ -56,7 +55,7 @@ func TestAutoDiscRace(t *testing.T) { t.Errorf("result %d: unexpected error: %v", i, rval.err) } wantIP := net.IP{33, 44, 55, 66} - if !bytes.Equal(rval.ip, wantIP) { + if !rval.ip.Equal(wantIP) { t.Errorf("result %d: got IP %v, want %v", i, rval.ip, wantIP) } } |