mintlayer-core icon indicating copy to clipboard operation
mintlayer-core copied to clipboard

Fix leaky tests detected by nextest

Open TheQuantumPhysicist opened this issue 2 years ago • 1 comments
trafficstars

When running unit tests with nextest, it detects leaky tests, which are defined as tests that don't clean-up properly when they finish. We should investigate this.

Note: For some reason, these are only detected on Windows. For me, I saw them when running the tests in git bash. This isn't found/detected by Linux or Mac.

TheQuantumPhysicist avatar Mar 14 '23 15:03 TheQuantumPhysicist

Also experienced similar warnings on Windows with Git Bash. The warnings are intermittent and not trivially reproducible. Here are a few examples:

LEAK [   0.138s] common chain::transaction::signature::tests::mutate_none::case_1
LEAK [   0.187s] crypto hash::tests::test_hash_sha3_512
LEAK [   0.184s] crypto hash::tests::test_ripemd160
LEAK [   0.184s] crypto hash::tests::test_ripemd160_stream

discosultan avatar Jun 09 '23 12:06 discosultan