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

We don't care about actual hostname resolution. (#6652)

https://bugs.ruby-lang.org/issues/18380
This commit is contained in:
Samuel Williams 2022-11-01 17:10:31 +13:00 committed by GitHub
parent aa8c6759ee
commit 16953867ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2022-11-01 04:10:56 +00:00
Merged-By: ioquatix <samuel@codeotaku.com>

View file

@ -269,7 +269,7 @@ class TestAddressResolve < Test::Unit::TestCase
Fiber.set_scheduler scheduler
Fiber.schedule do
result = Socket.getnameinfo(["AF_INET", 80, "example.com"], Socket::NI_NUMERICSERV)
result = Socket.getnameinfo(["AF_INET", 80, "example.com"], Socket::NI_NUMERICSERV | Socket::NI_NUMERICHOST)
assert_equal(["1.2.3.4", "80"], result)
end