mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add timeout to avoid global timeout
20141224
T065940Z.log.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
48436ac69e
commit
5328fa259b
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue