summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMisaki Shioi <[email protected]>2023-12-01 10:23:14 +0900
committerHiroshi SHIBATA <[email protected]>2023-12-01 12:20:03 +0900
commit52c2660163240a494b65eb9942c3978896ed807b (patch)
tree914f3e9315f67e5e10130d57814f3fd6cc1db3e4
parent1bfd30a1e3fa2c1d2729667ed698b7c604c2a1bd (diff)
Fixup with review comment
https://github.com/ruby/ruby/pull/9088#discussion_r1411490445
-rw-r--r--test/socket/test_socket.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb
index 6c3d6e198a..598a05d123 100644
--- a/test/socket/test_socket.rb
+++ b/test/socket/test_socket.rb
@@ -774,7 +774,7 @@ class TestSocket < Test::Unit::TestCase
begin
Socket.getaddrinfo("example.com", 80, "AF_UNIX")
rescue => e
- assert_equal([Socket::EAI_FAMILY, Socket::EAI_FAIL].include?(e.error_code), true)
+ assert_include([Socket::EAI_FAMILY, Socket::EAI_FAIL], e.error_code)
end
end