"testing/iotest"
"github.com/anacrolix/missinggo/v2/bitmap"
- "github.com/anacrolix/torrent"
- "github.com/anacrolix/torrent/internal/testutil"
- "github.com/anacrolix/torrent/storage"
"github.com/frankban/quicktest"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.org/x/time/rate"
+
+ "github.com/anacrolix/torrent"
+ "github.com/anacrolix/torrent/internal/testutil"
+ "github.com/anacrolix/torrent/storage"
)
type LeecherStorageTestCase struct {
cfg := torrent.TestingConfig(t)
// cfg.Debug = true
cfg.Seed = true
+ // Less than a piece, more than a single request.
+ cfg.MaxAllocPeerRequestDataPerConn = 4
// Some test instances don't like this being on, even when there's no cache involved.
cfg.DropMutuallyCompletePeers = false
if ps.SeederUploadRateLimiter != nil {