Suppress warning for fd leak

```
Leaked file descriptor: TestResolvDNS#test_multiple_servers_with_timeout_and_truncated_tcp_fallback: 15 : #<TCPSocket:fd 15, AF_INET, 127.0.0.1, 61633>
```
This commit is contained in:
Hiroshi SHIBATA 2024-08-22 09:39:09 +09:00
parent 773cf883ac
commit 8558bea27b
Notes: git 2024-08-22 01:39:02 +00:00

View File

@ -758,7 +758,7 @@ class TestResolvDNS < Test::Unit::TestCase
u1.send(msg[0...512], 0, client_address, client_port)
end
tcp_server1_thread = Thread.new { t1.accept }
tcp_server1_thread = Thread.new { t1.accept; t1.close }
tcp_server2_thread = Thread.new do
ct = t2.accept