From 1ab71a5b9875d38bebb7500cc7fa5af40d2f359e Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Mon, 14 Jun 2021 11:07:59 +0200 Subject: [PATCH] Fix fiber scheduler address resolve solaris tests --- test/fiber/test_address_resolve.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/fiber/test_address_resolve.rb b/test/fiber/test_address_resolve.rb index f2ad680b0a..457221b9b1 100644 --- a/test/fiber/test_address_resolve.rb +++ b/test/fiber/test_address_resolve.rb @@ -269,12 +269,9 @@ class TestAddressResolve < Test::Unit::TestCase Fiber.set_scheduler scheduler Fiber.schedule do - result = Socket.getnameinfo(["AF_INET", 80, "example.com"]) + result = Socket.getnameinfo(["AF_INET", 80, "example.com"], Socket::NI_NUMERICSERV) - assert_equal([ - "1.2.3.4", - "http" - ], result) + assert_equal(["1.2.3.4", "80"], result) end end.join end