Skip to content

Commit

Permalink
Surpress warning for fd leak
Browse files Browse the repository at this point in the history
```
Leaked file descriptor: TestResolvDNS#test_multiple_servers_with_timeout_and_truncated_tcp_fallback: 15 : #<TCPSocket:fd 15, AF_INET, 127.0.0.1, 61633>
```
  • Loading branch information
hsbt committed Aug 22, 2024
1 parent 773cf88 commit 3d43821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/resolv/test_dns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ def test_multiple_servers_with_timeout_and_truncated_tcp_fallback
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
Expand Down

0 comments on commit 3d43821

Please sign in to comment.