Skip to content

Commit

Permalink
Only test Ractor sharability if Ractors are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jan 24, 2024
1 parent cb9481e commit 839c288
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_statement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ def test_rows_should_be_frozen
assert_predicate row, :frozen?
row.each { |item| assert_predicate item, :frozen? }

assert Ractor.shareable?(rows)
assert Ractor.shareable?(row)
if defined?(Ractor)
assert Ractor.shareable?(rows)
assert Ractor.shareable?(row)
end
end

def test_double_close_does_not_segv
Expand Down

0 comments on commit 839c288

Please sign in to comment.