diff options
Diffstat (limited to 'test/resolv')
-rw-r--r-- | test/resolv/test_dns.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/resolv/test_dns.rb b/test/resolv/test_dns.rb index 4ace87c697..687ffef0be 100644 --- a/test/resolv/test_dns.rb +++ b/test/resolv/test_dns.rb @@ -161,6 +161,7 @@ class TestResolvDNS < Test::Unit::TestCase # Another program may use the port. # But no way to prevent it. Resolv::DNS.open(:nameserver_port => [[host, port]]) {|dns| + dns.timeouts = 0.1 assert_equal([], dns.getresources("test-no-server.example.org", Resolv::DNS::Resource::IN::A)) } end |