From fd5c0798e3f5415e9aefea58b24bb3ad89560924 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 26 Feb 2015 16:11:33 +1100 Subject: [PATCH] fs test: Resolve localhost, some platforms are funny about it --- fs/torrentfs_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/torrentfs_test.go b/fs/torrentfs_test.go index ea7daec7..b310b508 100644 --- a/fs/torrentfs_test.go +++ b/fs/torrentfs_test.go @@ -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), } }()}) -- 2.48.1