fix chunker tests - now padded by default

This commit is contained in:
Dmitriy Ryajov 2022-03-29 17:32:32 -06:00
parent 800d6e52fa
commit fc909b044e
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
2 changed files with 1 additions and 2 deletions

View File

@ -38,7 +38,6 @@ type
networkId*: PeerID
blockStore*: BlockStore
engine*: BlockExcEngine
erasure*: Erasure
proc start*(node: DaggerNodeRef) {.async.} =
await node.switch.start()

View File

@ -58,7 +58,7 @@ suite "Chunking":
let
(path, _, _) = instantiationInfo(-2, fullPaths = true) # get this file's name
file = open(path)
fileChunker = FileChunker.new(file = file, chunkSize = 256)
fileChunker = FileChunker.new(file = file, chunkSize = 256, pad = false)
var data: seq[byte]
while true: