fs test: Resolve localhost, some platforms are funny about it
This commit is contained in:
parent
f588522b66
commit
fd5c0798e3
|
@ -222,7 +222,10 @@ func TestDownloadOnDemand(t *testing.T) {
|
|||
panic(err)
|
||||
}
|
||||
return torrent.Peer{
|
||||
IP: net.IPv6loopback,
|
||||
IP: func() net.IP {
|
||||
ret, _ := net.ResolveIPAddr("ip", "localhost")
|
||||
return ret.IP
|
||||
}(),
|
||||
Port: int(portInt64),
|
||||
}
|
||||
}()})
|
||||
|
|
Loading…
Reference in New Issue