mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-03 06:03:06 +00:00
refactor - tests
This commit is contained in:
parent
ae311856a8
commit
dcb70ca429
@ -102,7 +102,7 @@ proc readFile[V](self: FSDatastore, path: string): ?!V =
|
||||
file.close
|
||||
|
||||
if not file.open(path):
|
||||
return failure "unable to open file!"
|
||||
return failure "unable to open file! path: " & path
|
||||
|
||||
try:
|
||||
let
|
||||
|
||||
@ -160,7 +160,10 @@ template queryTests*(
|
||||
var
|
||||
handle = ds.query(q).tryGet
|
||||
let
|
||||
res = handle.iter().toSeq().mapIt(it.tryGet())
|
||||
res = handle.iter().toSeq().mapIt(block:
|
||||
echo "RES: ", it.repr
|
||||
it.tryGet()
|
||||
)
|
||||
|
||||
check:
|
||||
res.len == 2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user