-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some tests fail randomly when using the trio runner #25
Comments
Ick. I've run into this error from trio elsewhere and I never figured out how to properly address it... I think I ended dropping some async generators I was using in favor of other mechanisms. |
Yeah, I've had to deal the same issue in https://github.com/ethereum/trinity/blob/d80a3b1fe5661d5108c9f10ddd077312ad4661a9/p2p/discovery.py#L1349-L1368 Just need to find what's causing it here |
I can't seem to find out what is causing this. At first I thought it was the signal asynciterator in
but even after removing that it still happens |
One thing that makes the failure disappear is changing the asyncio-run-in-process/tests/core/test_open_in_process.py Lines 93 to 97 in d0c0d16
I've no idea why, though, but it looks like another race condition that's only triggered by our tests that run not-very-realistic functions in the subprocess and kill the subprocess immediately after they're started |
test_open_proc_SIGINT_can_be_ignored
,test_open_proc_SIGINT_while_running
andtest_open_proc_with_trio_KeyboardInterrupt_while_running
all fail randomly when using theopen_in_process_with_trio()
runner. That happens because sometimes the runner raises aRuntimeError
like shown belowThe text was updated successfully, but these errors were encountered: