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:
parent
aa8c6759ee
commit
16953867ed
Notes:
git
2022-11-01 04:10:56 +00:00
Merged-By: ioquatix <samuel@codeotaku.com>
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue