File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -319,12 +319,11 @@ proc asyncEncode*(
319319 self: ErasureRef , blockSize, parityLen: int , blocks: seq [seq [byte ]]
320320): Future [?! seq [seq [byte ]]] {.async : (raises: [CancelledError ]).} =
321321 var threadPtr = ? ThreadSignalPtr .new ().mapFailure ()
322- echo " In Async Encode "
322+
323323 defer :
324324 if threadPtr != nil :
325325 ? threadPtr.close ().mapFailure ()
326326 threadPtr = nil
327- echo " Out Async Encode"
328327
329328 # # Create an ecode task with block data
330329 var task = EncodeTask (
@@ -484,12 +483,10 @@ proc asyncDecode*(
484483): Future [?! seq [seq [byte ]]] {.async : (raises: [CancelledError ]).} =
485484 var threadPtr = ? ThreadSignalPtr .new ().mapFailure ()
486485
487- echo " In Async Decode"
488486 defer :
489487 if threadPtr != nil :
490488 ? threadPtr.close ().mapFailure ()
491489 threadPtr = nil
492- echo " Out Async Decode"
493490
494491 # # Create an decode task with block data
495492 var task = DecodeTask (
Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ suite "Erasure encode/decode":
179179 decoded = (await erasure.decode (encoded)).tryGet ()
180180
181181 test " Should tolerate losing M (a.k.a row) contiguous data blocks" :
182+ echo " Testing tolerance for losing M contiguous data blocks"
182183 const
183184 buffers = 20
184185 parity = 10
@@ -197,6 +198,7 @@ suite "Erasure encode/decode":
197198 check present.tryGet ()
198199
199200 test " Should tolerate losing M (a.k.a row) contiguous parity blocks" :
201+ echo " Testing tolerance for losing M contiguous parity blocks"
200202 const
201203 buffers = 20
202204 parity = 10
@@ -219,6 +221,7 @@ suite "Erasure encode/decode":
219221 check present.tryGet ()
220222
221223 test " Handles edge case of 0 parity blocks" :
224+ echo " Testing edge case of 0 parity blocks"
222225 const
223226 buffers = 20
224227 parity = 0
@@ -228,6 +231,7 @@ suite "Erasure encode/decode":
228231 discard (await erasure.decode (encoded)).tryGet ()
229232
230233 test " Should concurrently encode/decode multiple datasets" :
234+ echo " Testing concurrent encode/decode with multiple datasets"
231235 const iterations = 5
232236
233237 let
@@ -265,6 +269,7 @@ suite "Erasure encode/decode":
265269 decoded.blocksCount == encoded.originalBlocksCount
266270
267271 test " Should handle verifiable manifests" :
272+ echo " Testing verifiable manifests"
268273 const
269274 buffers = 20
270275 parity = 10
You can’t perform that action at this time.
0 commit comments