mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-07 16:03:13 +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
75047f52be
commit
b060c8d520
@ -2,12 +2,12 @@ import pkg/asynctest/chronos/unittest2
|
|||||||
|
|
||||||
export unittest2 except eventually
|
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*(
|
template eventuallySafe*(
|
||||||
expression: untyped, timeout = 5000, pollInterval = 1000
|
expression: untyped, timeout = 5000, pollInterval = 1000
|
||||||
): bool =
|
): bool =
|
||||||
## More sane defaults, for use with HTTP connections
|
## 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)
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import ../contracts/deployment
|
|||||||
import ./marketplacesuite
|
import ./marketplacesuite
|
||||||
import ./twonodes
|
import ./twonodes
|
||||||
import ./nodeconfigs
|
import ./nodeconfigs
|
||||||
from ../helpers import eventuallySafe
|
|
||||||
|
|
||||||
marketplacesuite "Marketplace":
|
marketplacesuite "Marketplace":
|
||||||
let marketplaceConfig = NodeConfigs(
|
let marketplaceConfig = NodeConfigs(
|
||||||
|
|||||||
@ -7,7 +7,6 @@ import ../codex/helpers
|
|||||||
import ../examples
|
import ../examples
|
||||||
import ./marketplacesuite
|
import ./marketplacesuite
|
||||||
import ./nodeconfigs
|
import ./nodeconfigs
|
||||||
from ../helpers import eventuallySafe
|
|
||||||
|
|
||||||
export logutils
|
export logutils
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,6 @@ import ../contracts/time
|
|||||||
import ./codexconfig
|
import ./codexconfig
|
||||||
import ./codexclient
|
import ./codexclient
|
||||||
import ./nodeconfigs
|
import ./nodeconfigs
|
||||||
from ../helpers import eventuallySafe
|
|
||||||
|
|
||||||
proc findItem[T](items: seq[T], item: T): ?!T =
|
proc findItem[T](items: seq[T], item: T): ?!T =
|
||||||
for tmp in items:
|
for tmp in items:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user