diff --git a/src/hyperx/testutils.nim b/src/hyperx/testutils.nim index d29aa17..d4495a7 100644 --- a/src/hyperx/testutils.nim +++ b/src/hyperx/testutils.nim @@ -18,6 +18,7 @@ template testAsync*(name: string, body: untyped): untyped = proc test() {.async.} = body checked = true + discard getGlobalDispatcher() waitFor test() # check there are no dangling async futures doAssert not hasPendingOperations()