mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-10 09:23:12 +00:00
code cleanup
This commit is contained in:
parent
63fee7e90c
commit
34f4eedce2
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user