mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-09 14:26:27 +00:00
711e7db1e9
* Make some useful consts public, add some utils. * Implement various utilities. * peer_manager reconnectPeers enhancements --------- Co-authored-by: Álex Cabeza Romero <alex93cabeza@gmail.com>
38 lines
716 B
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
|