about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <bofh@yhbt.net>2022-12-25 12:23:51 +0000
committerEric Wong <bofh@yhbt.net>2022-12-25 13:43:22 +0000
commitfbf23db6051a72edfc7fbef2dd87992fe2656165 (patch)
tree0369f7710b7ef9917bb4ec46b1c126c9d512f89b
parenta57860a9e9eab9a1925eb0f872ca3364f251c06b (diff)
downloadyahns-master.tar.gz
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).
-rw-r--r--test/test_extras_exec_cgi.rb3
1 files changed, 2 insertions, 1 deletions
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 @@ class TestExtrasExecCGI < Testcase
       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 @@ class TestExtrasExecCGI < Testcase
         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"