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

Fix fiber scheduler address resolve solaris tests

This commit is contained in:
Bruno Sutic 2021-06-14 11:07:59 +02:00 committed by Samuel Williams
parent 25921fe1d6
commit 1ab71a5b98
Notes: git 2021-06-14 19:09:43 +09:00

View file

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