fix chunker tests - now padded by default
This commit is contained in:
parent
800d6e52fa
commit
fc909b044e
|
@ -38,7 +38,6 @@ type
|
||||||
networkId*: PeerID
|
networkId*: PeerID
|
||||||
blockStore*: BlockStore
|
blockStore*: BlockStore
|
||||||
engine*: BlockExcEngine
|
engine*: BlockExcEngine
|
||||||
erasure*: Erasure
|
|
||||||
|
|
||||||
proc start*(node: DaggerNodeRef) {.async.} =
|
proc start*(node: DaggerNodeRef) {.async.} =
|
||||||
await node.switch.start()
|
await node.switch.start()
|
||||||
|
|
|
@ -58,7 +58,7 @@ suite "Chunking":
|
||||||
let
|
let
|
||||||
(path, _, _) = instantiationInfo(-2, fullPaths = true) # get this file's name
|
(path, _, _) = instantiationInfo(-2, fullPaths = true) # get this file's name
|
||||||
file = open(path)
|
file = open(path)
|
||||||
fileChunker = FileChunker.new(file = file, chunkSize = 256)
|
fileChunker = FileChunker.new(file = file, chunkSize = 256, pad = false)
|
||||||
|
|
||||||
var data: seq[byte]
|
var data: seq[byte]
|
||||||
while true:
|
while true:
|
||||||
|
|
Loading…
Reference in New Issue