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

ruby-changes:32239

From: nobu <ko1@a...>
Date: Sat, 21 Dec 2013 16:18:24 +0900 (JST)
Subject: [ruby-changes:32239] nobu:r44318 (trunk): test_dns.rb: no server access

nobu	2013-12-21 16:18:18 +0900 (Sat, 21 Dec 2013)

  New Revision: 44318

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

  Log:
    test_dns.rb: no server access
    
    * test/resolv/test_dns.rb (test_invalid_byte_comment): get rid of
      actual server access.  [Bug #9273]

  Modified files:
    trunk/test/resolv/test_dns.rb
Index: test/resolv/test_dns.rb
===================================================================
--- test/resolv/test_dns.rb	(revision 44317)
+++ test/resolv/test_dns.rb	(revision 44318)
@@ -156,10 +156,8 @@ class TestResolvDNS < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/resolv/test_dns.rb#L156
     Tempfile.open('resolv_test_dns_') do |tmpfile|
       tmpfile.print("\xff\x00\x40")
       tmpfile.close
-      Resolv::DNS.open(tmpfile.path) do |dns|
-        assert_nothing_raised(ArgumentError, bug9273) do
-          dns.getresources("foo.example.org", Resolv::DNS::Resource::IN::A)
-        end
+      assert_nothing_raised(ArgumentError, bug9273) do
+        Resolv::DNS::Config.parse_resolv_conf(tmpfile.path)
       end
     end
   end

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

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