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:
parent
25921fe1d6
commit
1ab71a5b98
Notes:
git
2021-06-14 19:09:43 +09:00
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue