testerasure: fix column selection

previous test was sometimes failing, and often failing if changed
to
dataSetSize = BlockSize * 20

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2023-10-26 13:53:46 +02:00
parent cc52c7036f
commit 0001bbdd92
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ suite "Erasure encode/decode":
let encoded = await encode(buffers, parity)
var
column = rng.rand((encoded.len div encoded.steps) - 1) # random column
column = rng.rand(encoded.steps - 1) # random column
dropped: seq[Cid]
for _ in 0..<encoded.ecM:
@ -89,7 +89,7 @@ suite "Erasure encode/decode":
let encoded = await encode(buffers, parity)
var
column = rng.rand((encoded.len div encoded.steps) - 1) # random column
column = rng.rand(encoded.steps - 1) # random column
dropped: seq[Cid]
for _ in 0..<encoded.ecM + 1: