mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-07 07:53:07 +00:00
14 lines
489 B
Nim
14 lines
489 B
Nim
import pkg/asynctest/chronos/unittest2
|
|
|
|
export unittest2 except eventually
|
|
|
|
template eventually*(expression: untyped, timeout = 5000, pollInterval = 10): bool =
|
|
## Fast defaults, do not use with HTTP connections!
|
|
eventually(expression, timeout, pollInterval)
|
|
|
|
template eventuallySafe*(
|
|
expression: untyped, timeout = 5000, pollInterval = 1000
|
|
): bool =
|
|
## More sane defaults, for use with HTTP connections
|
|
eventually(expression, timeout = timeout, pollInterval = pollInterval)
|