mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rescue Errno::EPROTOTYPE
* test/webrick/test_httpserver.rb (test_gigantic_request_header): Errno::EPROTOTYPE is sometimes raised on Mac OS X 10.10. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6c4cab00cd
commit
3471d0f6d6
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,7 @@ class TestWEBrickHTTPServer < Test::Unit::TestCase
|
||||||
TCPSocket.open(addr, port) do |c|
|
TCPSocket.open(addr, port) do |c|
|
||||||
c.write("GET / HTTP/1.0\r\n")
|
c.write("GET / HTTP/1.0\r\n")
|
||||||
junk = -"X-Junk: #{' ' * 1024}\r\n"
|
junk = -"X-Junk: #{' ' * 1024}\r\n"
|
||||||
assert_raise(Errno::ECONNRESET, Errno::EPIPE) do
|
assert_raise(Errno::ECONNRESET, Errno::EPIPE, Errno::EPROTOTYPE) do
|
||||||
loop { c.write(junk) }
|
loop { c.write(junk) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue