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

Update syntax of unit test.

This commit is contained in:
John W. Phillips 2020-06-10 23:25:24 +00:00
parent 7f095b4445
commit 7dfd9fba25

View file

@ -269,21 +269,16 @@ class TestThreadPool < Minitest::Test
def test_correct_waiting_count_for_killed_threads
pool = new_pool(1, 1) { |_| }
pause
sleep 1
# simulate our waiting worker thread getting killed for whatever reason
pool.instance_eval { @workers[0].kill }
pause
sleep 1
pool.reap
pause
sleep 1
pool << 0
pause
sleep 1
assert_equal 0, pool.backlog
end
end