mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-02 13:43:11 +00:00
Remove fail()
This commit is contained in:
parent
673778697f
commit
e2e31e07b3
@ -26,7 +26,7 @@ proc modifyTests*(
|
||||
|
||||
let errMsg = (await op).errorOption.map((err) => err.msg)
|
||||
|
||||
check none(string) == errMsg
|
||||
require none(string) == errMsg
|
||||
|
||||
proc incAsyncFn(maybeBytes: ?seq[byte]): Future[?seq[byte]] {.async.} =
|
||||
await sleepAsync(2.millis) # allows interleaving
|
||||
@ -124,9 +124,5 @@ proc modifyTests*(
|
||||
|
||||
let res = await ds.modify(key, throwing)
|
||||
|
||||
if err =? res.errorOption:
|
||||
check:
|
||||
err.msg.contains("some error msg")
|
||||
else:
|
||||
# result was not an error
|
||||
fail()
|
||||
check:
|
||||
res.errorOption.map((err) => err.msg) == some("some error msg")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user