test/test_proxy_pass.rb in yahns-1.12.5 vs test/test_proxy_pass.rb in yahns-1.13.0

- old
+ new

@@ -483,11 +483,11 @@ "Connection: keep-alive\r\n" \ "\r\nshort" assert_equal exp, res errs = File.readlines(@err.path).grep(/\bERROR\b/) assert_equal 1, errs.size - assert_match(/premature upstream EOF/, errs[0]) + assert_match(/upstream EOF/, errs[0]) @err.truncate(0) # truncated headers or no response at all... # Send a 502 error %w(immediate-EOF truncate-head).each do |path| @@ -499,10 +499,10 @@ end assert_match %r{\AHTTP/1.1 502\s+}, res s.close errs = File.readlines(@err.path).grep(/\bERROR\b/) assert_equal 1, errs.size - assert_match(/premature upstream EOF/, errs[0]) + assert_match(/upstream EOF/, errs[0]) @err.truncate(0) end end def check_slow_giant_body(host, port)