Skip to content

fix: race condition in threading mocks - #8228

Draft
fricklerhandwerk wants to merge 3 commits into
getsentry:masterfrom
fricklerhandwerk:fix-thread-meta-test
Draft

fricklerhandwerk wants to merge 3 commits into
getsentry:masterfrom
fricklerhandwerk:fix-thread-meta-test

Conversation

@fricklerhandwerk

Copy link
Copy Markdown

Description

Problem: Tests around thread identity would randomly fail, because sometimes the main thread would get the .join() from the mock instead, and then the mock would run out of responses.

Fix: Have patched current_thread only respond to the worker thread.

Issues

Related: #3336

Reminders

This branch has not been deployed

No deployments
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