@@ -134,7 +134,9 @@ def test_threading_with_transaction
134
134
135
135
def test_ractor
136
136
skip ( 'Ractor is not available' ) unless Object . const_defined? ( :Ractor , false )
137
- skip ( 'hiredis driver is not safe for Ractor' ) if ::RedisClient . default_driver == :hiredis
137
+ skip ( "#{ RedisClient . default_driver } is not safe for Ractor" ) if RedisClient . default_driver != RedisClient ::RubyConnection
138
+ skip ( 'OpenSSL gem has non-shareable objects' ) if TEST_REDIS_SSL
139
+ skip ( 'test case may get stuck' ) if RUBY_ENGINE == 'ruby' && RUBY_ENGINE_VERSION . split ( '.' ) . take ( 2 ) . join ( '.' ) . to_f < 3.1
138
140
139
141
ractors = Array . new ( MAX_THREADS ) do |i |
140
142
Ractor . new ( i ) do |i |
@@ -156,7 +158,9 @@ def test_ractor
156
158
157
159
def test_ractor_with_pipelining
158
160
skip ( 'Ractor is not available' ) unless Object . const_defined? ( :Ractor , false )
159
- skip ( 'hiredis driver is not safe for Ractor' ) if ::RedisClient . default_driver == :hiredis
161
+ skip ( "#{ RedisClient . default_driver } is not safe for Ractor" ) if RedisClient . default_driver != RedisClient ::RubyConnection
162
+ skip ( 'OpenSSL gem has non-shareable objects' ) if TEST_REDIS_SSL
163
+ skip ( 'test case may get stuck' ) if RUBY_ENGINE == 'ruby' && RUBY_ENGINE_VERSION . split ( '.' ) . take ( 2 ) . join ( '.' ) . to_f < 3.1
160
164
161
165
ractors = Array . new ( MAX_THREADS ) do |i |
162
166
Ractor . new ( i ) do |i |
@@ -181,7 +185,9 @@ def test_ractor_with_pipelining
181
185
182
186
def test_ractor_with_transaction
183
187
skip ( 'Ractor is not available' ) unless Object . const_defined? ( :Ractor , false )
184
- skip ( 'hiredis driver is not safe for Ractor' ) if ::RedisClient . default_driver == :hiredis
188
+ skip ( "#{ RedisClient . default_driver } is not safe for Ractor" ) if RedisClient . default_driver != RedisClient ::RubyConnection
189
+ skip ( 'OpenSSL gem has non-shareable objects' ) if TEST_REDIS_SSL
190
+ skip ( 'test case may get stuck' ) if RUBY_ENGINE == 'ruby' && RUBY_ENGINE_VERSION . split ( '.' ) . take ( 2 ) . join ( '.' ) . to_f < 3.1
185
191
186
192
ractors = Array . new ( MAX_THREADS ) do |i |
187
193
Ractor . new ( i ) do |i |
0 commit comments