mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-09 08:53:10 +00:00
run tests async from start so that stop can cancel all tracked futures
This commit is contained in:
parent
bd68388d2a
commit
0309cfd063
@ -641,7 +641,10 @@ proc start*(
|
||||
manager.trackedFutures.track fut
|
||||
asyncSpawn fut
|
||||
|
||||
await manager.runTests()
|
||||
let futRunTests = manager.runTests()
|
||||
manager.trackedFutures.track futRunTests
|
||||
|
||||
await futRunTests
|
||||
|
||||
manager.printResult()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user