-
Notifications
You must be signed in to change notification settings - Fork 757
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
Use CondVar instead of UnitTest.wait in tests #5457
Use CondVar instead of UnitTest.wait in tests #5457
Conversation
Thanks @patrickdupuis ! Could you remove the "skip" entries for the fixed tests from the supercollider/testsuite/scripts/gha_test_run_proto.json Lines 19 to 24 in 6c49680
as well as other fixed tests. Once you do, these tests will run in CI in this PR. |
@dyfer I've updated the list of skipped tests in the CI. Let's see what happens in GA :) |
I don't think we can run |
I've added those tests back to the skipped list. |
Should we re-run the CI a few times just to make sure everything is passing? |
bf0c3bb
to
f6ac6a0
Compare
I cleaned up the commit history. Let's run the CI one last time before merging. |
@dyfer the test that's failing for Linux hasn't happened before. I'd rather just ignore it and merge the PR. What do you think? |
I'd be fine ignoring it, but I have seen |
That test isn't touched by any changes made in this PR, so I say we ignore it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Purpose and Motivation
Fixes #5366
This PR removes all but one use of
UnitTest.wait
inside our test suite (the exception being testing that method itself).CondVar
is used as a preferred alternative. I've updated the documentation, and added comments and notes pointing users towardsCondVar
.I've also re-written the implementation of
UnitTest.wait
. This method no longer makes use ofCondition
as this Class is likely going to be deprecated in the future (or at least no longer be used inside the SC class library).Types of changes
To-do list