From fbf23db6051a72edfc7fbef2dd87992fe2656165 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 25 Dec 2022 12:23:51 +0000 Subject: test/test_extras_exec_cgi: drop Rack::ContentLength 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 @@ 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" -- cgit v1.2.3-24-ge0c7