From 5328fa259ba6a30ca06577925e8cab0aa824ce5a Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 24 Dec 2014 08:32:55 +0000 Subject: [PATCH] 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 --- test/resolv/test_dns.rb | 1 + 1 file changed, 1 insertion(+) 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