Fix warnings about unused setup and teardown

This commit is contained in:
Mark Spanbroek 2021-01-11 17:41:55 +01:00
parent 737f01326c
commit a7f3ae9428
2 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -1,4 +1,4 @@
version = "0.2.0"
version = "0.2.1"
author = "asynctest Authors"
description = "Test asynchronous code"
license = "MIT"