summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasaki Matsushita <glass.saga@gmail.com>2019-09-09 15:05:05 +0900
committerMasaki Matsushita <glass.saga@gmail.com>2019-09-09 15:05:38 +0900
commit461663f52a87bbae7f3713862a20a4aa6bd63e4c (patch)
tree1d1abed65e8acd49cce7981768f2481dbae74a60
parent61d90da25c027f896ddc0e71c7b17c67d4b12a97 (diff)
Fix domain name for test
-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 2af6918caa..9f50848c7d 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.localdomain", "http", Socket::PF_INET, Socket::SOCK_STREAM, timeout: 1).fetch(0)
+ ai = Addrinfo.getaddrinfo("localhost", "http", Socket::PF_INET, Socket::SOCK_STREAM, timeout: 1).fetch(0)
assert_equal(6, ai.protocol)
assert_equal(80, ai.ip_port)
end