diff --git a/tests/asynctest.nim b/tests/asynctest.nim index 39492fa6..6f9d2d42 100644 --- a/tests/asynctest.nim +++ b/tests/asynctest.nim @@ -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) diff --git a/tests/integration/testmarketplace.nim b/tests/integration/testmarketplace.nim index 9c9c1618..f881a6ae 100644 --- a/tests/integration/testmarketplace.nim +++ b/tests/integration/testmarketplace.nim @@ -6,7 +6,6 @@ import ../contracts/deployment import ./marketplacesuite import ./twonodes import ./nodeconfigs -from ../helpers import eventuallySafe marketplacesuite "Marketplace": let marketplaceConfig = NodeConfigs( diff --git a/tests/integration/testproofs.nim b/tests/integration/testproofs.nim index 05e9901d..b8586fba 100644 --- a/tests/integration/testproofs.nim +++ b/tests/integration/testproofs.nim @@ -7,7 +7,6 @@ import ../codex/helpers import ../examples import ./marketplacesuite import ./nodeconfigs -from ../helpers import eventuallySafe export logutils diff --git a/tests/integration/testsales.nim b/tests/integration/testsales.nim index 75b5bf10..ce32a3ef 100644 --- a/tests/integration/testsales.nim +++ b/tests/integration/testsales.nim @@ -8,7 +8,6 @@ import ../contracts/time import ./codexconfig import ./codexclient import ./nodeconfigs -from ../helpers import eventuallySafe proc findItem[T](items: seq[T], item: T): ?!T = for tmp in items: