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

Support tests that access db from a new thread #2116

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

r4victor
Copy link
Collaborator

The PR makes it possible to test sync code that needs to access the db. Such code must create a new db engine. Now get_new_db() can be monkey-patch with sqlite test_db so that the same db is safe to use from different threads.

@r4victor r4victor merged commit c135335 into master Dec 18, 2024
23 checks passed
@r4victor r4victor deleted the pr_multi_thread_db_tests branch December 18, 2024 10:38
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