fs: Change listen addrs to localhost in tests

Seems to improve reliability. Maybe the missinggo.Addr{IP,Port} change did something.
This commit is contained in:
Matt Joiner 2016-02-22 02:39:49 +11:00
parent 815d118d6e
commit ca5080a382
1 changed files with 2 additions and 2 deletions

View File

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