]> Sergey Matveev's repositories - btrtrc.git/blobdiff - torrent_test.go
Fix BenchmarkUpdatePiecePriorities
[btrtrc.git] / torrent_test.go
index 2b96f19157421ebab0c5eb8979bd8b44bb4e2774..38ea3d868499ff5541737da3a4091a4490e9fcc2 100644 (file)
@@ -89,6 +89,7 @@ func BenchmarkUpdatePiecePriorities(b *testing.B) {
                PieceLength: pieceLength,
                Length:      pieceLength * numPieces,
        }))
+       t.onSetInfo()
        assert.EqualValues(b, 13410, t.numPieces())
        for i := 0; i < 7; i += 1 {
                r := t.NewReader()