summaryrefslogtreecommitdiff
path: root/test/resolv
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-24 08:32:55 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-24 08:32:55 +0000
commit5328fa259ba6a30ca06577925e8cab0aa824ce5a (patch)
tree7f2d7ddcaff2777fa3ab172496f3f8265e669249 /test/resolv
parent48436ac69e12a5189cb36de7e3b8b6d9c2b53fd6 (diff)
add timeout to avoid global timeout
http://ruby-mswin.cloudapp.net/vc10-x64/ruby-trunk/log/20141224T065940Z.log.html.gz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/resolv')
-rw-r--r--test/resolv/test_dns.rb1
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