torrent_test.go | 1 + diff --git a/torrent_test.go b/torrent_test.go index e50618d0af6a20097d4c02aa2edb3ddcd409fade..43887e165dbda74816727fca42a662d2e9f7fa72 100644 --- a/torrent_test.go +++ b/torrent_test.go @@ -80,6 +80,7 @@ numPieces = 13410 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),