nwaku/tests/testlib/testutils.nim

38 lines
716 B
Nim

import testutils/unittests, chronos
template xsuite*(name: string, body: untyped) =
discard
template suitex*(name: string, body: untyped) =
discard
template xprocSuite*(name: string, body: untyped) =
discard
template procSuitex*(name: string, body: untyped) =
discard
template xtest*(name: string, body: untyped) =
test name:
skip()
template testx*(name: string, body: untyped) =
test name:
skip()
template xasyncTest*(name: string, body: untyped) =
test name:
skip()
template asyncTestx*(name: string, body: untyped) =
test name:
skip()
template waitActive*(condition: bool) =
for i in 0 ..< 200:
if condition:
break
await sleepAsync(10)
assert condition