From 922bc9f29be1a0c16688e0f2ebb52df1cd6b7279 Mon Sep 17 00:00:00 2001 From: Sorah Fukumori Date: Wed, 14 Aug 2024 08:07:39 +0900 Subject: [PATCH] Update test_dns.rb --- test/resolv/test_dns.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/resolv/test_dns.rb b/test/resolv/test_dns.rb index 3943474..133dbab 100644 --- a/test/resolv/test_dns.rb +++ b/test/resolv/test_dns.rb @@ -709,8 +709,8 @@ def test_multiple_servers_with_timeout_and_truncated_tcp_fallback num_records = 50 with_udp_and_tcp('127.0.0.1', 0) do |u1, t1| - # XXX: _u2 UDP socket is not used, but using #with_udp_and_tcp to enable Windows EACCES workaround - with_udp_and_tcp('127.0.0.1', 0) do |_u2,t2| + with_udp_and_tcp('127.0.0.1', 0) do |u2,t2| + u2.close # XXX: u2 UDP socket is not used, but using #with_udp_and_tcp to enable Windows EACCES workaround _, server1_port, _, server1_address = u1.addr _, server2_port, _, server2_address = t2.addr