mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-16 04:13:09 +00:00
fix eventually symbol resolution
Because `eventuallySafe` calls the symbol `eventually`, it should be declared before `proc eventually` is declared to avoid ambiguous symbol lookups.
This commit is contained in:
parent
9e0d151c6b
commit
59e9196edc
@ -2,12 +2,12 @@ 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)
|
||||
eventually(expression, timeout, pollInterval)
|
||||
|
||||
template eventually*(expression: untyped, timeout = 5000, pollInterval = 10): bool =
|
||||
## Fast defaults, do not use with HTTP connections!
|
||||
eventually(expression, timeout, pollInterval)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user