From: Matt Joiner Date: Tue, 30 Jul 2019 07:25:10 +0000 (+1000) Subject: fs: Fix test failure when default client port is unavailable X-Git-Tag: v1.5.2~1 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=7b47dcbf51f3e84bc68fd56d4874aeb64cf3b7dd;p=btrtrc.git fs: Fix test failure when default client port is unavailable --- diff --git a/fs/torrentfs_test.go b/fs/torrentfs_test.go index 582f9c2d..55fd7c97 100644 --- a/fs/torrentfs_test.go +++ b/fs/torrentfs_test.go @@ -169,6 +169,7 @@ func TestDownloadOnDemand(t *testing.T) { cfg.DisableTrackers = true cfg.NoDHT = true cfg.Seed = true + cfg.ListenPort = 0 cfg.ListenHost = torrent.LoopbackListenHost seeder, err := torrent.NewClient(cfg) require.NoError(t, err)