1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

test_thread_pool.rb - small JRuby fix

test_shutdown_with_grace - JRuby - rescued array may contain threads that have been GC'd, and hence are nil?
This commit is contained in:
MSP-Greg 2020-05-15 16:49:35 -05:00
parent 91e57f4e17
commit 3cc1fb7d5c

View file

@ -264,6 +264,6 @@ class TestThreadPool < Minitest::Test
end
assert_equal 0, pool.spawned
assert_equal 2, rescued.length
refute rescued.any?(&:alive?)
refute rescued.compact.any?(&:alive?)
end
end