DEBUG: removed extra echo statements

This commit is contained in:
Bulat Ziganshin 2022-06-30 14:03:37 +03:00
parent 3a269990ad
commit 09d3e22ddf
2 changed files with 0 additions and 5 deletions

View File

@ -59,12 +59,9 @@ method getBlock*(
# return Block.failure("Block not found") # TODO: return nil
try:
echo "cachestore: before exception"
let x = self.cache[cid]
echo "cachestore: after exception"
return x.success
except CatchableError as e:
echo "cachestore: exception catched"
return Block.failure(e)
# return self.cache[cid].catch()

View File

@ -23,11 +23,9 @@ suite "Cache Store tests":
store = CacheStore.new()
test "constructor":
echo "testcachestore: before exception"
# cache size cannot be smaller than chunk size
expect ValueError:
discard CacheStore.new(cacheSize = 1, chunkSize = 2)
echo "testcachestore: after exception"
store = CacheStore.new(cacheSize = 100, chunkSize = 1)
check store.currentSize == 0