asynctest/tests/testAsyncTest.nim
Mark Spanbroek 737f01326c Make API identical to std/unittest
Also includes a fix for GcUnsafe2 warnings with chronos.
2021-01-11 17:28:55 +01:00

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