From: Matt Joiner Date: Fri, 10 Jan 2020 06:22:46 +0000 (+1100) Subject: Fix panic in benchmark due to requestStrategy changes X-Git-Tag: v1.12.0~10 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=35cdebdc3b6e9662fbcb3cc660d0ff9dc00373ed;p=btrtrc.git Fix panic in benchmark due to requestStrategy changes --- diff --git a/torrent_test.go b/torrent_test.go index 6133f5df..cdedad1e 100644 --- a/torrent_test.go +++ b/torrent_test.go @@ -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{