Skip to content

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
djmb committed Oct 11, 2023
1 parent bb0cee8 commit ca401df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/integration/processes_lifecycle_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class ProcessLifecycleTest < ActiveSupport::TestCase

setup do
@pid = run_supervisor_as_fork
puts "supervisor pid = #{@pid}"

wait_for_registered_processes(3, timeout: 1.second)
assert_registered_processes_for(:background, :default)
Expand Down
4 changes: 2 additions & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def wait_for_process_termination_with_timeout(pid, timeout: 10, from_parent: tru
def signal_process(pid, signal, wait: nil)
Thread.new do
sleep(wait) if wait
puts pid
puts `ps aux`
puts "Sending #{signal} to #{pid}"
puts `ps aux | grep #{pid}`
Process.kill(signal, pid)
end
end
Expand Down

0 comments on commit ca401df

Please sign in to comment.