mirror of
https://github.com/status-im/asynctest.git
synced 2025-02-20 00:28:11 +00:00
Fix warnings about unused setup and teardown
This commit is contained in:
parent
737f01326c
commit
a7f3ae9428
@ -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()
|
||||
|
@ -1,4 +1,4 @@
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
author = "asynctest Authors"
|
||||
description = "Test asynchronous code"
|
||||
license = "MIT"
|
||||
|
Loading…
x
Reference in New Issue
Block a user