mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-03 14:13:09 +00:00
fix broken key not found test
This commit is contained in:
parent
0beb3d3c90
commit
bb304a2f9d
@ -61,5 +61,5 @@ proc basicStoreTests*(
|
||||
test "handle missing key":
|
||||
let key = Key.init("/missing/key").tryGet()
|
||||
|
||||
# TODO: map error correctly from threadproxy
|
||||
check (await ds.get(key)).isErr() # non existing key
|
||||
expect(DatastoreKeyNotFound):
|
||||
discard (await ds.get(key)).tryGet() # non existing key
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user