The issue was actually caused by the use of the flakyAsyncTest with the check macro. When the condition inside check returned false instead of raising an exception, the error message happened.
The proposed solution is to just remove the flakyAsyncTest template and use checkUntilTimeout instead.
This PR also increases the time sleeping inside checkUntilTimeout from 1 to 100 ms. It seemed excessive to retry every 1 ms.
I couldn't reproduce the error anymore after running 100 times locally on macOS. Let's monitor how it behaves on CI.
closes https://github.com/vacp2p/nim-libp2p/issues/1122 and also removes commented code and test.
The issue was actually caused by the use of the
flakyAsyncTest
with thecheck
macro. When the condition inside check returned false instead of raising an exception, the error message happened.The proposed solution is to just remove the
flakyAsyncTest
template and usecheckUntilTimeout
instead.This PR also increases the time sleeping inside
checkUntilTimeout
from 1 to 100 ms. It seemed excessive to retry every 1 ms.I couldn't reproduce the error anymore after running 100 times locally on macOS. Let's monitor how it behaves on CI.