diff options
author | Eric Wong <bofh@yhbt.net> | 2022-12-25 12:23:51 +0000 |
---|---|---|
committer | Eric Wong <bofh@yhbt.net> | 2022-12-25 13:43:22 +0000 |
commit | fbf23db6051a72edfc7fbef2dd87992fe2656165 (patch) | |
tree | 0369f7710b7ef9917bb4ec46b1c126c9d512f89b /test | |
parent | a57860a9e9eab9a1925eb0f872ca3364f251c06b (diff) | |
download | yahns-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).
Diffstat (limited to 'test')
-rw-r--r-- | test/test_extras_exec_cgi.rb | 3 |
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" |