From 35cdebdc3b6e9662fbcb3cc660d0ff9dc00373ed Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 10 Jan 2020 17:22:46 +1100 Subject: [PATCH] Fix panic in benchmark due to requestStrategy changes --- torrent_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{ -- 2.48.1