Skip to content

Commit 8984b87

Browse files
authored
Increase DNS resolver timeouts in test_multiple_servers_with_timeout_and_truncated_tcp_fallback (#125)
The test uses intentionally tight timeouts to trigger TCP fallback, but 0.1s/0.2s can be too tight on loaded CI machines, causing the overall test to time out before the fallback to server2 completes.
1 parent 351d08a commit 8984b87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/resolv/test_dns.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,8 @@ def test_multiple_servers_with_timeout_and_truncated_tcp_fallback
721721

722722
client_thread = Thread.new do
723723
Resolv::DNS.open(nameserver_port: [[server1_address, server1_port], [server2_address, server2_port]]) do |dns|
724-
dns.timeouts = [EnvUtil.apply_timeout_scale(0.1),
725-
EnvUtil.apply_timeout_scale(0.2)]
724+
dns.timeouts = [EnvUtil.apply_timeout_scale(0.5),
725+
EnvUtil.apply_timeout_scale(1)]
726726
dns.getresources('foo.example.org', Resolv::DNS::Resource::IN::A)
727727
end
728728
end

0 commit comments

Comments
 (0)