From ca401df74098780b7bb69db6f25d8fbd506c62d1 Mon Sep 17 00:00:00 2001 From: Donal McBreen Date: Wed, 11 Oct 2023 12:29:22 +0200 Subject: [PATCH] More debug --- test/integration/processes_lifecycle_test.rb | 1 + test/test_helper.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/integration/processes_lifecycle_test.rb b/test/integration/processes_lifecycle_test.rb index de863e3e..cd6d09c2 100644 --- a/test/integration/processes_lifecycle_test.rb +++ b/test/integration/processes_lifecycle_test.rb @@ -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) diff --git a/test/test_helper.rb b/test/test_helper.rb index 83a0bc77..7cd313b0 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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