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

Revive test_busy_handler_outwait and synchronize threads to remove "sleep 1". #459

Merged

Conversation

masamitsu-murase
Copy link
Contributor

I revived test_busy_handler_outwait because I think that this test covers a good use case regarding busy_handler.

Ruby 1.9 and later does not allow a thread to unlock a Mutex locked by another thread, so I used Queue to synchronize the main thread and another thread.
I also refined other test methods to remove sleep 1, which was used to synchronize threads.

I hope this pull request improves this project, but please feel free to ignore it if it is not so useful.

Regards,
Murase

@masamitsu-murase masamitsu-murase changed the title Synchronize threads to remove "sleep 1". Revive test_busy_handler_outwait and synchronize threads to remove "sleep 1". Jan 8, 2024
@fractaledmind
Copy link
Contributor

Speeding up the test suite is a nice feature. I've been running the whole suite locally a lot lately, and these tests are very noticeable.

@flavorjones flavorjones force-pushed the improve_test_for_multithread branch from d403335 to ce532d5 Compare April 25, 2024 15:54
@flavorjones
Copy link
Member

I've rebased this onto current main

@flavorjones flavorjones force-pushed the improve_test_for_multithread branch from ce532d5 to 6899ba3 Compare April 25, 2024 15:56
@flavorjones
Copy link
Member

MacOS failures are unrelated, merging. @masamitsu-murase Thank you!

@flavorjones flavorjones merged commit 2388793 into sparklemotion:main Apr 25, 2024
121 of 125 checks passed
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.

3 participants