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
Spec involving Mutex passes in 3.8 but fails in 3.9 #1327
Comments
I guess there's some overlap with |
This happens because we use |
Closing here now, as the fix is over in |
@JonRowe Thanks for the quick reply/fix! I tried it 'creates a mootex when one is not available' do
subject.instance_variable_set('@mootex', nil)
expect(Mutex).to receive(:new).and_call_original
subject.mootex
end but got the same error. It's not a big deal, though, since you already have a fix in place. I'll just leave the project pinned at 3.8.x until the fix hits the wild. Many thanks! |
Subject of the issue
This comes from a project that hasn't been updated in a few years, but I was recently bringing into the modern day. A spec involving the use of
Mutex.new
passes in 3.8 but fails in 3.9. I believe it is related to the change in rspec-mocks 3.9 that improves thread safety by usingMutex
.Your environment
Steps to reproduce
Expected behavior
Both specs should pass.
Actual behavior
The text was updated successfully, but these errors were encountered: