mirror of
https://github.com/logos-storage/asynctest.git
synced 2026-01-02 21:13:08 +00:00
21 lines
391 B
Nim
21 lines
391 B
Nim
import std/asyncdispatch
|
|
import pkg/asynctest
|
|
|
|
proc someAsyncProc {.async.} =
|
|
# perform some async operations using await
|
|
discard
|
|
|
|
suite "test async proc":
|
|
|
|
setup:
|
|
# invoke await in the test setup:
|
|
await someAsyncProc()
|
|
|
|
teardown:
|
|
# invoke await in the test teardown:
|
|
await someAsyncProc()
|
|
|
|
test "async test":
|
|
# invoke await in tests:
|
|
await someAsyncProc()
|