mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/webrick/test_httpproxy.rb (TestWEBrickHTTPProxy::test_upstream_proxy):
My machine fails this test at this line, saying 503 service unavailable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b602f6516f
commit
43ce320c4c
2 changed files with 6 additions and 0 deletions
|
@ -202,6 +202,7 @@ class TestWEBrickHTTPProxy < Test::Unit::TestCase
|
|||
|
||||
req = Net::HTTP::Get.new("/")
|
||||
http.request(req){|res|
|
||||
skip res.message unless res.code == '200'
|
||||
via = res["via"].split(/,\s+/)
|
||||
assert(via.include?("1.1 localhost.localdomain:#{up_port}"), up_log.call + log.call)
|
||||
assert(via.include?("1.1 localhost.localdomain:#{port}"), up_log.call + log.call)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue