Skip to content

Commit fcb3fdb

Browse files
authored
Rails 6: Coerce reaper test using fork (#809)
* Coerce reaper test using fork * Coerce test only if fork isn't supported
1 parent dc1baf7 commit fcb3fdb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/cases/coerced_tests.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,3 +1483,15 @@ def test_has_primary_key_coerced
14831483
original_test_has_primary_key
14841484
end
14851485
end
1486+
1487+
1488+
1489+
1490+
module ActiveRecord
1491+
module ConnectionAdapters
1492+
class ReaperTest < ActiveRecord::TestCase
1493+
# Coerce can be removed if Rails version > 6.0.3
1494+
coerce_tests! :test_connection_pool_starts_reaper_in_fork unless Process.respond_to?(:fork)
1495+
end
1496+
end
1497+
end

0 commit comments

Comments
 (0)