Skip to content

Commit 839c288

Browse files
committed
Only test Ractor sharability if Ractors are defined
1 parent cb9481e commit 839c288

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/test_statement.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ def test_rows_should_be_frozen
2525
assert_predicate row, :frozen?
2626
row.each { |item| assert_predicate item, :frozen? }
2727

28-
assert Ractor.shareable?(rows)
29-
assert Ractor.shareable?(row)
28+
if defined?(Ractor)
29+
assert Ractor.shareable?(rows)
30+
assert Ractor.shareable?(row)
31+
end
3032
end
3133

3234
def test_double_close_does_not_segv

0 commit comments

Comments
 (0)