2024-09-24 16:20:29 +00:00
|
|
|
import testutils/unittests, chronos
|
2022-10-28 13:04:29 +00:00
|
|
|
|
2024-03-15 23:08:47 +00:00
|
|
|
template xsuite*(name: string, body: untyped) =
|
|
|
|
discard
|
2022-10-28 13:04:29 +00:00
|
|
|
|
2024-03-15 23:08:47 +00:00
|
|
|
template suitex*(name: string, body: untyped) =
|
|
|
|
discard
|
2022-11-03 16:58:28 +00:00
|
|
|
|
2024-03-15 23:08:47 +00:00
|
|
|
template xprocSuite*(name: string, body: untyped) =
|
|
|
|
discard
|
|
|
|
|
|
|
|
template procSuitex*(name: string, body: untyped) =
|
|
|
|
discard
|
2022-11-03 16:58:28 +00:00
|
|
|
|
|
|
|
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()
|
2022-10-28 13:04:29 +00:00
|
|
|
|
2022-11-03 16:58:28 +00:00
|
|
|
template asyncTestx*(name: string, body: untyped) =
|
|
|
|
test name:
|
|
|
|
skip()
|
2024-09-24 16:20:29 +00:00
|
|
|
|
|
|
|
template waitActive*(condition: bool) =
|
|
|
|
for i in 0 ..< 200:
|
|
|
|
if condition:
|
|
|
|
break
|
|
|
|
await sleepAsync(10)
|
|
|
|
|
|
|
|
assert condition
|