]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix panic in benchmark due to requestStrategy changes
authorMatt Joiner <anacrolix@gmail.com>
Fri, 10 Jan 2020 06:22:46 +0000 (17:22 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 13 Jan 2020 23:51:09 +0000 (10:51 +1100)
torrent_test.go

index 6133f5df88662d158bb09d0f1cd56d515f52ef0c..cdedad1e9bff88f8e6acdc4f24d34cc4d264ca5e 100644 (file)
@@ -80,7 +80,7 @@ func BenchmarkUpdatePiecePriorities(b *testing.B) {
                numPieces   = 13410
                pieceLength = 256 << 10
        )
-       cl := &Client{config: &ClientConfig{}}
+       cl := &Client{config: TestingConfig()}
        cl.initLogger()
        t := cl.newTorrent(metainfo.Hash{}, nil)
        require.NoError(b, t.setInfo(&metainfo.Info{