diff --git a/asynctest.nim b/asynctest.nim index ce88688..1016607 100644 --- a/asynctest.nim +++ b/asynctest.nim @@ -4,12 +4,12 @@ export unittest except suite, test template suite*(name, body) = suite name: - template setup(setupBody) = + template setup(setupBody) {.used.} = setup: let asyncproc = proc {.async.} = setupBody waitFor asyncproc() - template teardown(teardownBody) = + template teardown(teardownBody) {.used.} = teardown: let asyncproc = proc {.async.} = teardownBody waitFor asyncproc() diff --git a/asynctest.nimble b/asynctest.nimble index 8b74e95..fd848d5 100644 --- a/asynctest.nimble +++ b/asynctest.nimble @@ -1,4 +1,4 @@ -version = "0.2.0" +version = "0.2.1" author = "asynctest Authors" description = "Test asynchronous code" license = "MIT"