From 3471d0f6d6619b41b7054bd7bb87e929156abde2 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 23 Apr 2018 23:46:26 +0000 Subject: [PATCH] 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 --- test/webrick/test_httpserver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/webrick/test_httpserver.rb b/test/webrick/test_httpserver.rb index 77da797282..3f888110be 100644 --- a/test/webrick/test_httpserver.rb +++ b/test/webrick/test_httpserver.rb @@ -452,7 +452,7 @@ class TestWEBrickHTTPServer < Test::Unit::TestCase TCPSocket.open(addr, port) do |c| c.write("GET / HTTP/1.0\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) } end end