From c3c79fcdb71c599e426f9ce83d45dc8cc3d9cd3c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 3 May 2013 22:08:15 +0000 Subject: test_signals: increase delay between Process.kill Otherwise, the signalled process may take too long to react to and process all the signals on machines with few CPUs. --- test/unit/test_signals.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/test_signals.rb b/test/unit/test_signals.rb index 84d6a4b..f1d8bb3 100644 --- a/test/unit/test_signals.rb +++ b/test/unit/test_signals.rb @@ -174,7 +174,7 @@ class SignalsTest < Test::Unit::TestCase sock.syswrite("Content-Length: #{@bs * @count}\r\n\r\n") 1000.times { Process.kill(:HUP, pid) } size_before = @tmp.stat.size - killer = fork { loop { Process.kill(:HUP, pid); sleep(0.0001) } } + killer = fork { loop { Process.kill(:HUP, pid); sleep(0.01) } } buf = ' ' * @bs @count.times { sock.syswrite(buf) } Process.kill(:KILL, killer) -- cgit v1.2.3-24-ge0c7