testerasure: fix modulo logic in test
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
3181361658
commit
2db5e0d7a3
|
@ -48,7 +48,7 @@ suite "Erasure encode/decode":
|
||||||
|
|
||||||
check:
|
check:
|
||||||
encoded.len mod (buffers + parity) == 0
|
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
|
encoded.steps == encoded.rounded div buffers
|
||||||
|
|
||||||
return encoded
|
return encoded
|
||||||
|
|
Loading…
Reference in New Issue