1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Remove check of ai.protocol

Solaris 10 returns addrinfo.ai_protocol as 0, not 6.
This commit is contained in:
Masaki Matsushita 2019-09-10 12:39:49 +09:00
parent 20e428ec40
commit f5024de002

View file

@ -690,7 +690,6 @@ class TestSocketAddrinfo < Test::Unit::TestCase
def test_addrinfo_timeout
ai = Addrinfo.getaddrinfo("localhost", "ssh", Socket::PF_INET, Socket::SOCK_STREAM, timeout: 1).fetch(0)
assert_equal(6, ai.protocol)
assert_equal(22, ai.ip_port)
end
end