-
Notifications
You must be signed in to change notification settings - Fork 452
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
test_remove_observer RuntimeError: There is no current event loop in thread 'Dummy-1'
#6176
Comments
It seems to be working now. |
You could consider using IPv8's |
@kozlovsky probably found a cause of this error. |
Hopefully, I fixed the problem. Below is the description what was the reason for the bug: Tribler test suite runs tests using the following command:
Some time ago, the Tribler tests are not designed to be run in parallel in multiple threads. It can be the reason for numerous mysterious bugs, for example, when different parallel tests cause race conditions by modifying the same global variables. Also, a new thread does not have an event loop instance, so when an unfortunate test tries to get an event loop, it results in the following error:
After this breaking change, To fix the problem, I switched from
It seems that this change fixed the issue and improved test stability. After the change, our tests should be able to still work in parallel. |
@kozlovsky 👏 👏 👏 |
yeah! ! ! Solid work 👍👍👍 |
From the frontpage builder.
Probably related to calling
get_event_loop()
directly outside of a unit test.The text was updated successfully, but these errors were encountered: