--- ruby-2.2.5/test/openssl/test_ssl.rb~ 2016-10-10 23:29:47.898876066 +0100 +++ ruby-2.2.5/test/openssl/test_ssl.rb 2016-10-10 23:49:44.981438082 +0100 @@ -850,7 +850,7 @@ end def test_npn_protocol_selection_cancel - ctx_proc = Proc.new { |ctx| ctx.npn_protocols = ["http/1.1"] } + ctx_proc = Proc.new { |ctx| ctx.npn_protocols = ["http/1.1", "spdy/2"] } start_server_version(:SSLv23, ctx_proc) { |server, port| ctx = OpenSSL::SSL::SSLContext.new ctx.npn_select_cb = -> (protocols) { raise RuntimeError.new }