mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-08 00: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:
|
||||
check: not (await ds.has(k)).tryGet
|
||||
|
||||
# test "handle missing key":
|
||||
# let key = Key.init("/missing/key").tryGet()
|
||||
test "handle missing key":
|
||||
let key = Key.init("/missing/key").tryGet()
|
||||
|
||||
# # expect(ResultFailure):
|
||||
# discard (await ds.get(key)).tryGet() # non existing key
|
||||
# TODO: map error correctly from threadproxy
|
||||
check (await ds.get(key)).isErr() # non existing key
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user