X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=test%2Ftransfer_test.go;h=683d589b897059c1b76b24491c66bedecdcc7773;hb=ac086bb3bd3b8e31c117362551eb0fe295a0f78d;hp=a719fcc73f7c4de4d0b946b8f432054881ce8079;hpb=5380337f869ed630e1102036bf6dec48c044152a;p=btrtrc.git diff --git a/test/transfer_test.go b/test/transfer_test.go index a719fcc7..683d589b 100644 --- a/test/transfer_test.go +++ b/test/transfer_test.go @@ -155,6 +155,11 @@ func testSeedAfterDownloading(t *testing.T, disableUtp bool) { cfg.Seed = true cfg.DataDir = t.TempDir() cfg.DisableUTP = disableUtp + // Make sure the leecher-leecher doesn't connect directly to the seeder. This is because I + // wanted to see if having the higher chunk-sized leecher-leecher would cause the leecher to + // error decoding. However it shouldn't because a client should only be receiving pieces sized + // to the chunk size it expects. + cfg.DisablePEX = true //cfg.Debug = true cfg.Logger = log.Default.WithContextText("leecher") leecher, err := torrent.NewClient(cfg)