mirror of
https://github.com/logos-storage/asynctest.git
synced 2026-01-11 01:13:10 +00:00
17 lines
314 B
Nim
17 lines
314 B
Nim
|
|
import std/unittest
|
||
|
|
import std/asyncdispatch
|
||
|
|
import pkg/asynctest
|
||
|
|
|
||
|
|
suite "async tests":
|
||
|
|
|
||
|
|
proc asyncproc {.async.} = discard
|
||
|
|
|
||
|
|
asyncsetup: # allows await in setup
|
||
|
|
await asyncproc()
|
||
|
|
|
||
|
|
asyncteardown: # allows await in teardown
|
||
|
|
await asyncproc()
|
||
|
|
|
||
|
|
asynctest "allows await in tests":
|
||
|
|
await asyncproc()
|