From fc909b044e48e55f64cc1bbefbabe922388f19db Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Tue, 29 Mar 2022 17:32:32 -0600 Subject: [PATCH] fix chunker tests - now padded by default --- dagger/node.nim | 1 - tests/dagger/testchunking.nim | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dagger/node.nim b/dagger/node.nim index 2bbfb864..a5d417ec 100644 --- a/dagger/node.nim +++ b/dagger/node.nim @@ -38,7 +38,6 @@ type networkId*: PeerID blockStore*: BlockStore engine*: BlockExcEngine - erasure*: Erasure proc start*(node: DaggerNodeRef) {.async.} = await node.switch.start() diff --git a/tests/dagger/testchunking.nim b/tests/dagger/testchunking.nim index ad759d95..4d4668a8 100644 --- a/tests/dagger/testchunking.nim +++ b/tests/dagger/testchunking.nim @@ -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: