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

Fix service name for test

change service name to fix failed test on Solaris
This commit is contained in:
Masaki Matsushita 2019-09-09 18:35:19 +09:00
parent 461663f52a
commit 0fb2457d79

View file

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