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

Fix test failure for JRuby

This commit is contained in:
Nate Berkopec 2020-03-14 08:01:36 -06:00 committed by GitHub
parent da449ac70f
commit 73397c646e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,10 @@ class TestThreadPool < Minitest::Test
end
pool.trim
pool.instance_variable_get(:@workers).first.join
# wait/join required here for MRI, JRuby slow enough to error here
worker = pool.instance_variable_get(:@workers).first
worker.join if worker
assert_equal 0, pool.spawned
end