From ca5080a38274517f27dc372bc93ea1311039af91 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 22 Feb 2016 02:39:49 +1100 Subject: [PATCH] fs: Change listen addrs to localhost in tests Seems to improve reliability. Maybe the missinggo.Addr{IP,Port} change did something. --- fs/torrentfs_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/torrentfs_test.go b/fs/torrentfs_test.go index 5a942f93..6d859e4c 100644 --- a/fs/torrentfs_test.go +++ b/fs/torrentfs_test.go @@ -172,7 +172,7 @@ func TestDownloadOnDemand(t *testing.T) { DataDir: layout.Completed, DisableTrackers: true, NoDHT: true, - ListenAddr: ":0", + ListenAddr: "localhost:0", Seed: true, NoDefaultBlocklist: true, @@ -189,7 +189,7 @@ func TestDownloadOnDemand(t *testing.T) { leecher, err := torrent.NewClient(&torrent.Config{ DisableTrackers: true, NoDHT: true, - ListenAddr: ":0", + ListenAddr: "localhost:0", DisableTCP: true, NoDefaultBlocklist: true,