It is causing _blocked_zombie to fail on rtype=11 due to the
addition of Content-Length making the client persistent when
we didn't actually want it to be (for the test).
---
test/test_extras_exec_cgi.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/test_extras_exec_cgi.rb b/test/test_extras_exec_cgi.rb
index 426409d..4fa928d 100644
--- a/test/test_extras_exec_cgi.rb
+++ b/test/test_extras_exec_cgi.rb
@@ -136,7 +136,7 @@ def _blocked_zombie(block_on, rtype)
Yahns::HttpClient.__send__(:include, TrywriteBlocked)
require './extras/exec_cgi'
cfg.instance_eval do
- stack = Rack::ContentLength.new(Rack::Chunked.new(ExecCgi.new(RUNME)))
+ stack = Rack::Chunked.new(ExecCgi.new(RUNME))
app(:rack, stack) { listen "#{host}:#{port}" }
stderr_path err.path
worker_processes 1
@@ -170,6 +170,7 @@ def _blocked_zombie(block_on, rtype)
assert_match %r{\A\d+\n\z}, body
exec_pid = body.to_i
poke_until_dead exec_pid
+ # lack of Content-Length should trigger EOF here:
assert_raises(EOFError) { c.readpartial(666) }
else
raise "BUG in test, bad rtype"