From 2db5e0d7a36cd0a28702b0a42a31f19149c0f4d0 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Fri, 20 Oct 2023 14:39:02 +0200 Subject: [PATCH] testerasure: fix modulo logic in test Signed-off-by: Csaba Kiraly --- tests/codex/testerasure.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/codex/testerasure.nim b/tests/codex/testerasure.nim index 6f1bf882..56344d7f 100644 --- a/tests/codex/testerasure.nim +++ b/tests/codex/testerasure.nim @@ -48,7 +48,7 @@ suite "Erasure encode/decode": check: encoded.len mod (buffers + parity) == 0 - encoded.rounded == (manifest.len + (buffers - (manifest.len mod buffers))) + encoded.rounded == manifest.len - 1 + buffers - (manifest.len - 1) mod buffers encoded.steps == encoded.rounded div buffers return encoded