Skip to content
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

Feature/unit test cleanup threads #300

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

maarten-ic
Copy link
Collaborator

This PR adds a fixture to check that no threads are left running after every test.

It also fixes every case where threads were left running, and thereby prevents the following DeprecationWarning:

DeprecationWarning: This process (pid=......) is multi-threaded, use of fork() may lead to deadlocks in the child.

And ensure that `InstanceManager.shutdown()` is only called once by `Manager`.
… unit tests

Ensure all threads are properly shutting down in the unit tests. This prevents the following warning:
```
DeprecationWarning: This process (pid=208847) is multi-threaded, use of fork() may lead to deadlocks in the child.
```
@maarten-ic maarten-ic self-assigned this Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant