Skip to content

Commit

Permalink
Skip broken spec on 3.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Apr 11, 2023
1 parent 0821061 commit a092650
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rspec/support/reentrant_mutex_spec.rb
Expand Up @@ -28,13 +28,13 @@
order.join_all
end

# On Ruby 3.1.3, 3.2.0 and RUBY_HEAD the raise in this spec can
# On Ruby 3.1.3+, 3.2.0 and RUBY_HEAD the raise in this spec can
# bypass the `raise_error` capture and break this spec but
# it is not sufficient to pend it as the raise can escape to the other
# threads somehow therefore poisoning them so its skipped entirely.
# This is a temporary work around to allow green cross project builds but
# needs a fix.
if RUBY_VERSION >= '3.0' && RUBY_VERSION != '3.1.3' && RUBY_VERSION < '3.2.0' && !ENV['RUBY_HEAD']
if RUBY_VERSION >= '3.0' && RUBY_VERSION < '3.1.3' && !ENV['RUBY_HEAD']
it 'waits when trying to lock from another Fiber' do
mutex.synchronize do
ready = false
Expand Down

0 comments on commit a092650

Please sign in to comment.