From dd97fb7bd5ac10903dd3f717728dccc77ac7f59d Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 8 Dec 2017 23:23:22 +0100 Subject: [PATCH] p2p/enr: fix one more IP conversion in tests --- p2p/enr/enr_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/p2p/enr/enr_test.go b/p2p/enr/enr_test.go index 087e0a62e1..07a6494765 100644 --- a/p2p/enr/enr_test.go +++ b/p2p/enr/enr_test.go @@ -21,7 +21,6 @@ import ( "encoding/hex" "fmt" "math/rand" - "net" "testing" "time" @@ -251,7 +250,7 @@ func TestPythonInterop(t *testing.T) { var ( wantAddr, _ = hex.DecodeString("caaa1485d83b18b32ed9ad666026151bf0cae8a0a88c857ae2d4c5be2daa6726") wantSeq = uint64(1) - wantIP = IP4(net.ParseIP("127.0.0.1").To4()) + wantIP = IP4{127, 0, 0, 1} wantDiscport = DiscPort(30303) ) if r.Seq() != wantSeq {