mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-05 23:23:10 +00:00
re-enable missing key check
This commit is contained in:
parent
7f6d95bc29
commit
20d7234d50
@ -58,8 +58,8 @@ proc basicStoreTests*(
|
|||||||
for k in batch:
|
for k in batch:
|
||||||
check: not (await ds.has(k)).tryGet
|
check: not (await ds.has(k)).tryGet
|
||||||
|
|
||||||
# test "handle missing key":
|
test "handle missing key":
|
||||||
# let key = Key.init("/missing/key").tryGet()
|
let key = Key.init("/missing/key").tryGet()
|
||||||
|
|
||||||
# # expect(ResultFailure):
|
# TODO: map error correctly from threadproxy
|
||||||
# discard (await ds.get(key)).tryGet() # non existing key
|
check (await ds.get(key)).isErr() # non existing key
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user