Skip to content

Commit

Permalink
Update test_integration_cluster.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg committed Apr 20, 2024
1 parent 1c15179 commit 4f55812
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/test_integration_cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -547,11 +547,11 @@ def test_culling_strategy_oldest_fork_worker

get_worker_pids # to consume server logs

Process.kill :TTIN, @pid
Process.kill :TTIN, @pid # increment the worker count by 1

assert wait_for_server_to_match(/Worker 2 \(PID: \d+\) booted in/)

Process.kill :TTOU, @pid
Process.kill :TTOU, @pid # decrement the worker count by 1

assert wait_for_server_to_match(/Worker 1 \(PID: \d+\) terminating/)
end
Expand Down Expand Up @@ -706,16 +706,14 @@ def usr1_all_respond(config = nil)
mutex = Mutex.new
reqs = 40

refused = thread_run_refused

queue = Queue.new

thread_requests = request_ary_thread(reqs, 0.25, 1, 4, mutex, queue, replies) do
Process.kill :USR1, @pid
end

thread_responses = Thread.new do
collect_response_ary_data(replies, mutex, queue, refused)
collect_response_ary_data(replies, mutex, queue, thread_run_refused)
end

thread_requests.join
Expand Down

0 comments on commit 4f55812

Please sign in to comment.