aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-10-13 19:05:48 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-10-13 19:05:48 +0000
commit6627b828a16ff922343cd3bd2c307600d588c493 (patch)
tree94babf1b1a3d3e1f880dbda8a1fa9a844f36ad5f /railties
parent9a7ff1433acbc31c456a462dafa5091d27819865 (diff)
downloadrails-6627b828a16ff922343cd3bd2c307600d588c493.tar.gz
rails-6627b828a16ff922343cd3bd2c307600d588c493.tar.bz2
rails-6627b828a16ff922343cd3bd2c307600d588c493.zip
r3576@sedna: jeremy | 2005-10-13 11:31:50 -0700
Update fcgi_dispatcher_test for old changes to the FCGI handler: processing attr was removed, USR1 behaves the same (sets when_ready = :exit) whether or not currently handling request. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2555 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/test/fcgi_dispatcher_test.rb12
1 files changed, 3 insertions, 9 deletions
diff --git a/railties/test/fcgi_dispatcher_test.rb b/railties/test/fcgi_dispatcher_test.rb
index 1d9b6fafaf..2a88e91ea5 100644
--- a/railties/test/fcgi_dispatcher_test.rb
+++ b/railties/test/fcgi_dispatcher_test.rb
@@ -53,7 +53,6 @@ class RailsFCGIHandlerTest < Test::Unit::TestCase
@handler.process!
assert_nil @handler.exit_code
assert_nil @handler.when_ready
- assert !@handler.processing
end
def test_interrupted_via_HUP_when_not_in_request
@@ -64,7 +63,6 @@ class RailsFCGIHandlerTest < Test::Unit::TestCase
@handler.thread.join
assert_nil @handler.exit_code
assert_nil @handler.when_ready
- assert !@handler.processing
assert @handler.reloaded
end
@@ -76,7 +74,6 @@ class RailsFCGIHandlerTest < Test::Unit::TestCase
@handler.thread.join
assert_nil @handler.exit_code
assert_equal :reload, @handler.when_ready
- assert !@handler.processing
end
def test_interrupted_via_USR1_when_not_in_request
@@ -85,9 +82,8 @@ class RailsFCGIHandlerTest < Test::Unit::TestCase
sleep 0.1 # let the thread get started
@handler.send_signal("USR1")
@handler.thread.join
- assert_equal 0, @handler.exit_code
- assert_nil @handler.when_ready
- assert !@handler.processing
+ assert_nil @handler.exit_code
+ assert_equal :exit, @handler.when_ready
end
def test_interrupted_via_USR1_when_in_request
@@ -97,8 +93,7 @@ class RailsFCGIHandlerTest < Test::Unit::TestCase
@handler.send_signal("USR1")
@handler.thread.join
assert_nil @handler.exit_code
- assert @handler.when_ready
- assert !@handler.processing
+ assert_equal :exit, @handler.when_ready
end
%w(RuntimeError SignalException).each do |exception|
@@ -176,6 +171,5 @@ class RailsFCGIHandlerPeriodicGCTest < Test::Unit::TestCase
assert_nil @handler.exit_code
assert_nil @handler.when_ready
- assert !@handler.processing
end
end