From 64c40a45b41db8c727112899a50e180b1eb8a111 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 29 Jan 2018 19:16:55 +1100 Subject: [PATCH] Fix panic in benchmark caused by new logging --- torrent_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/torrent_test.go b/torrent_test.go index e50618d0..43887e16 100644 --- a/torrent_test.go +++ b/torrent_test.go @@ -80,6 +80,7 @@ func BenchmarkUpdatePiecePriorities(b *testing.B) { pieceLength = 256 << 10 ) cl := &Client{} + cl.initLogger() t := cl.newTorrent(metainfo.Hash{}, nil) require.NoError(b, t.setInfo(&metainfo.Info{ Pieces: make([]byte, metainfo.HashSize*numPieces), -- 2.48.1