p2p/enr: fix one more IP conversion in tests

This commit is contained in:
Felix Lange 2017-12-08 23:23:22 +01:00
parent d97b48d0d2
commit dd97fb7bd5

View file

@ -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 {