refactor - tests

This commit is contained in:
Jaremy Creechley 2023-09-27 19:35:42 -07:00
parent ae311856a8
commit dcb70ca429
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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