code cleanup

This commit is contained in:
munna0908 2025-07-10 16:24:29 +05:30
parent 63fee7e90c
commit 34f4eedce2
No known key found for this signature in database
GPG Key ID: 2FFCD637E937D3E6

View File

@ -179,7 +179,6 @@ suite "Erasure encode/decode":
decoded = (await erasure.decode(encoded)).tryGet()
test "Should tolerate losing M (a.k.a row) contiguous data blocks":
echo "Testing tolerance for losing M contiguous data blocks"
const
buffers = 20
parity = 10
@ -198,7 +197,6 @@ suite "Erasure encode/decode":
check present.tryGet()
test "Should tolerate losing M (a.k.a row) contiguous parity blocks":
echo "Testing tolerance for losing M contiguous parity blocks"
const
buffers = 20
parity = 10
@ -221,7 +219,6 @@ suite "Erasure encode/decode":
check present.tryGet()
test "Handles edge case of 0 parity blocks":
echo "Testing edge case of 0 parity blocks"
const
buffers = 20
parity = 0
@ -231,7 +228,6 @@ suite "Erasure encode/decode":
discard (await erasure.decode(encoded)).tryGet()
test "Should concurrently encode/decode multiple datasets":
echo "Testing concurrent encode/decode with multiple datasets"
const iterations = 5
let
@ -257,7 +253,7 @@ suite "Erasure encode/decode":
for i in 0 ..< encodeResults.len:
decodeTasks.add(erasure.decode(encodeResults[i].read().tryGet()))
# wait for all decoding tasks to finish
let decodeResults = await allFinished(decodeTasks) # TODO: use allFutures
let decodeResults = await allFinished(decodeTasks) # TODO: use allFutures
for j in 0 ..< decodeTasks.len:
let
@ -269,7 +265,6 @@ suite "Erasure encode/decode":
decoded.blocksCount == encoded.originalBlocksCount
test "Should handle verifiable manifests":
echo "Testing verifiable manifests"
const
buffers = 20
parity = 10