testerasure: fix modulo logic in test

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2023-10-20 14:39:02 +02:00
parent 3181361658
commit 2db5e0d7a3
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E
1 changed files with 1 additions and 1 deletions

View File

@ -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