In all my testament specs I set `valgrind: true`

however, if I import `std/asyncdispatch` or `std/threadpool` into file A

  * e.g. [this 
file](https://github.com/nirv-ai/boat/blob/bug/valgrind-fails-on-asyncdispatch-and-threadpool-import/src/boat/private/FileManager.nim)



and then import file A into file B

  * e.g. [this 
file](https://github.com/nirv-ai/boat/blob/bug/valgrind-fails-on-asyncdispatch-and-threadpool-import/src/boat/private/Config.nim#L24)



it will cause valgrind to throw

  * e.g. [this test 
run](https://github.com/nirv-ai/boat/actions/runs/4428925967/jobs/7768687365#step:6:188)



I looked through the [testament docs](https://nim-lang.org/docs/testament.html) 
but did not see anything pertinent to this issue

  * if i set `valgrind: "leaks"` then the tests will pass, however, this 
defeats the purpose of using valgrind


Reply via email to