[前][次][番号順一覧][スレッド一覧]

ruby-changes:36887

From: naruse <ko1@a...>
Date: Wed, 24 Dec 2014 17:33:09 +0900 (JST)
Subject: [ruby-changes:36887] naruse:r48968 (trunk): add timeout to avoid global timeout

naruse	2014-12-24 17:32:55 +0900 (Wed, 24 Dec 2014)

  New Revision: 48968

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48968

  Log:
    add timeout to avoid global timeout
    
    http://ruby-mswin.cloudapp.net/vc10-x64/ruby-trunk/log/20141224T065940Z.log.html.gz

  Modified files:
    trunk/test/resolv/test_dns.rb
Index: test/resolv/test_dns.rb
===================================================================
--- test/resolv/test_dns.rb	(revision 48967)
+++ test/resolv/test_dns.rb	(revision 48968)
@@ -161,6 +161,7 @@ class TestResolvDNS < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/resolv/test_dns.rb#L161
     # 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]