diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-08-10 02:50:08 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-08-10 02:50:08 -0700 |
commit | 76ec094b15c24bf6fb05155330d83f5bdd71c8e5 (patch) | |
tree | d4eeb24b65b524372b0b6b2777410e44a01bae32 | |
parent | c5fc250a7c7248166ed85e3468faea782c72ccf0 (diff) | |
download | unicorn-76ec094b15c24bf6fb05155330d83f5bdd71c8e5.tar.gz |
The normal at_exit handlers can't work here
-rw-r--r-- | test/unit/test_signals.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/test_signals.rb b/test/unit/test_signals.rb index 8ac4707..f4b5f89 100644 --- a/test/unit/test_signals.rb +++ b/test/unit/test_signals.rb @@ -53,8 +53,10 @@ class SignalsTest < Test::Unit::TestCase buf =~ /\bX-Pid: (\d+)\b/ or raise Exception child = $1.to_i wait_master_ready("test_stderr.#{pid}.log") + wait_workers_ready("test_stderr.#{pid}.log", 1) Process.kill(:KILL, pid) Process.waitpid(pid) + File.unlink("test_stderr.#{pid}.log", "test_stdout.#{pid}.log") t0 = Time.now end assert child |