From: Matt Joiner Date: Mon, 29 Jan 2018 08:16:55 +0000 (+1100) Subject: Fix panic in benchmark caused by new logging X-Git-Tag: v1.0.0~242 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=64c40a45b41db8c727112899a50e180b1eb8a111;p=btrtrc.git Fix panic in benchmark caused by new logging --- 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),