nwaku/tests/testlib/testutils.nim
Ivan FB 711e7db1e9
chore: test peer connection management (#3049)
* Make some useful consts public, add some utils.
* Implement various utilities.
* peer_manager reconnectPeers enhancements

---------

Co-authored-by: Álex Cabeza Romero <alex93cabeza@gmail.com>
2024-09-24 18:20:29 +02:00

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