]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix test that sets zero download rate limiter
authorMatt Joiner <anacrolix@gmail.com>
Mon, 14 Jul 2025 05:37:10 +0000 (15:37 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 14 Jul 2025 05:37:10 +0000 (15:37 +1000)
issue211_test.go

index d8c541da6f95b7d0a0bda48113a93384fb492814..410e4d3a4fa4869da75eb05f2e29a698023bee48 100644 (file)
@@ -21,6 +21,7 @@ func TestDropTorrentWithMmapStorageWhileHashing(t *testing.T) {
        // over the network as the test runs.
        cfg.DownloadRateLimiter = rate.NewLimiter(0, 0)
        cfg.DialForPeerConns = false
+       cfg.AcceptPeerConnections = false
        cl, err := NewClient(cfg)
        require.NoError(t, err)
        defer cl.Close()