]> Sergey Matveev's repositories - btrtrc.git/commitdiff
fs: Change listen addrs to localhost in tests
authorMatt Joiner <anacrolix@gmail.com>
Sun, 21 Feb 2016 15:39:49 +0000 (02:39 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 21 Feb 2016 15:39:49 +0000 (02:39 +1100)
Seems to improve reliability. Maybe the missinggo.Addr{IP,Port} change did something.

fs/torrentfs_test.go

index 5a942f935ec2e81cb4576dce846f5610af7cac55..6d859e4c6bcbf098379a039fe7b2ee7f82bfbdf5 100644 (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,