mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-20 06:13:09 +00:00
refactor piece validator tests
This commit is contained in:
parent
86166196de
commit
ea3cfe0b04
@ -10,7 +10,7 @@ import pkg/codex/manifest
|
||||
import pkg/codex/bittorrent/manifest
|
||||
import pkg/codex/bittorrent/piecevalidator
|
||||
|
||||
suite "Torrent PieceValidator":
|
||||
template createExampleTorrentData() {.dirty.} =
|
||||
const numOfPieces = 10
|
||||
const pieceLength = 65536
|
||||
const contentLength = pieceLength * numOfPieces
|
||||
@ -34,6 +34,9 @@ suite "Torrent PieceValidator":
|
||||
mimetype = "application/octet-stream".some,
|
||||
)
|
||||
|
||||
suite "Torrent PieceValidator":
|
||||
createExampleTorrentData()
|
||||
|
||||
var pieceValidator: TorrentPieceValidator
|
||||
|
||||
setup:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user