diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-05-10 19:02:05 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-05-10 21:44:25 -0700 |
commit | 32affaf3d70983b86ec006ece27f3f34c98bedcc (patch) | |
tree | ead49e45ead8505461bedaa6f6153e2bca82a2d6 /test/unit/test_signals.rb | |
parent | 1dc79837c336ad8cb4762746acc6a489b8932c81 (diff) | |
download | unicorn-32affaf3d70983b86ec006ece27f3f34c98bedcc.tar.gz |
2 seconds is still prone to race conditions under high load. We're intentionally less accurate than we could be in order to reduce syscall and method dispatch overhead.
Diffstat (limited to 'test/unit/test_signals.rb')
-rw-r--r-- | test/unit/test_signals.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/test_signals.rb b/test/unit/test_signals.rb index 24094fe..ef66ed6 100644 --- a/test/unit/test_signals.rb +++ b/test/unit/test_signals.rb @@ -40,7 +40,7 @@ class SignalsTest < Test::Unit::TestCase def test_worker_dies_on_dead_master pid = fork { app = lambda { |env| [ 200, {'X-Pid' => "#$$" }, [] ] } - opts = @server_opts.merge(:timeout => 2) + opts = @server_opts.merge(:timeout => 3) redirect_test_io { HttpServer.new(app, opts).start.join } } child = sock = buf = t0 = nil @@ -94,7 +94,7 @@ class SignalsTest < Test::Unit::TestCase def test_timeout_slow_response pid = fork { app = lambda { |env| sleep } - opts = @server_opts.merge(:timeout => 2) + opts = @server_opts.merge(:timeout => 3) redirect_test_io { HttpServer.new(app, opts).start.join } } t0 = Time.now |