aboutsummaryrefslogtreecommitdiffstats
path: root/test/socket
diff options
context:
space:
mode:
authorMasaki Matsushita <glass.saga@gmail.com>2019-09-09 18:35:19 +0900
committerMasaki Matsushita <glass.saga@gmail.com>2019-09-09 18:35:19 +0900
commit0fb2457d794ee49701873584c80a6e1cace94b83 (patch)
tree6739be9a4bd3c902f028068b94e974ae90d2f6f3 /test/socket
parent461663f52a87bbae7f3713862a20a4aa6bd63e4c (diff)
downloadruby-0fb2457d794ee49701873584c80a6e1cace94b83.tar.gz
Fix service name for test
change service name to fix failed test on Solaris
Diffstat (limited to 'test/socket')
-rw-r--r--test/socket/test_addrinfo.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_addrinfo.rb b/test/socket/test_addrinfo.rb
index 9f50848c7d..fcb71da011 100644
--- a/test/socket/test_addrinfo.rb
+++ b/test/socket/test_addrinfo.rb
@@ -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