summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasaki Matsushita <glass.saga@gmail.com>2019-09-10 03:39:49 (GMT)
committerMasaki Matsushita <glass.saga@gmail.com>2019-09-10 03:39:49 (GMT)
commitf5024de002fa82dfe5730b245ad24b8fc3a68424 (patch)
tree4465def001f125d41e8609dacb1035391ca09570
parent20e428ec40ee1c83708b3ade6a0007ab2a435f83 (diff)
Remove check of ai.protocol
Solaris 10 returns addrinfo.ai_protocol as 0, not 6.
-rw-r--r--test/socket/test_addrinfo.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/socket/test_addrinfo.rb b/test/socket/test_addrinfo.rb
index 68341c2..92b61ea 100644
--- a/test/socket/test_addrinfo.rb
+++ b/test/socket/test_addrinfo.rb
@@ -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