summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/resolv/test_dns.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/resolv/test_dns.rb b/test/resolv/test_dns.rb
index fb5842f048..1d921b8377 100644
--- a/test/resolv/test_dns.rb
+++ b/test/resolv/test_dns.rb
@@ -89,8 +89,8 @@ class TestResolvDNS < Test::Unit::TestCase
# If we get to this point, we have a valid t & u socket
yield us.last, ts.last
ensure
- ts.each { _1.close }
- us.each { _1.close }
+ ts.each(&:close)
+ us.each(&:close)
end
else
# Explicitly specified port, don't retry the bind.