Fix the argument order

This commit is contained in:
Nobuyoshi Nakada 2023-11-30 13:36:11 +09:00
parent ac9fdb7a50
commit e6d4441618
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465

View file

@ -774,7 +774,7 @@ class TestSocket < Test::Unit::TestCase
begin
Socket.getaddrinfo("www.kame.net", 80, "AF_UNIX")
rescue => e
assert_equal(e.error_code, Socket::EAI_FAMILY)
assert_equal(Socket::EAI_FAMILY, e.error_code)
end
end