mirror of
https://github.com/logos-storage/apatheia.git
synced 2026-01-02 13:03:11 +00:00
format
This commit is contained in:
parent
ddfb8a6f69
commit
760f13a7d0
@ -51,12 +51,10 @@ proc runTest(tp: TaskPool, sig: ThreadSignalPtr) {.async.} =
|
||||
# await wait(sig)
|
||||
|
||||
suite "async tests":
|
||||
|
||||
var tp = Taskpool.new(num_threads = 2) # Default to the number of hardware threads.
|
||||
let sig = ThreadSignalPtr.new().get()
|
||||
|
||||
asyncTest "test":
|
||||
|
||||
try:
|
||||
await runTest(tp, sig)
|
||||
except AsyncTimeoutError:
|
||||
@ -64,6 +62,3 @@ suite "async tests":
|
||||
GC_fullCollect()
|
||||
os.sleep(2_000)
|
||||
echo "Done"
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user