From 09d3e22ddf9f0465fa33c2e0688bbe10578b72c1 Mon Sep 17 00:00:00 2001 From: Bulat Ziganshin Date: Thu, 30 Jun 2022 14:03:37 +0300 Subject: [PATCH] DEBUG: removed extra echo statements --- codex/stores/cachestore.nim | 3 --- tests/codex/stores/testcachestore.nim | 2 -- 2 files changed, 5 deletions(-) diff --git a/codex/stores/cachestore.nim b/codex/stores/cachestore.nim index 5e04d337..8521ae5b 100644 --- a/codex/stores/cachestore.nim +++ b/codex/stores/cachestore.nim @@ -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() diff --git a/tests/codex/stores/testcachestore.nim b/tests/codex/stores/testcachestore.nim index f4a826d2..c59e1d7f 100644 --- a/tests/codex/stores/testcachestore.nim +++ b/tests/codex/stores/testcachestore.nim @@ -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