From 1ef0a76c6c6556bf6ab155e2ad28a23748ee59ef Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 21 Dec 2013 07:18:18 +0000 Subject: test_dns.rb: no server access * test/resolv/test_dns.rb (test_invalid_byte_comment): get rid of actual server access. [Bug #9273] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/resolv/test_dns.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/resolv/test_dns.rb') diff --git a/test/resolv/test_dns.rb b/test/resolv/test_dns.rb index e3e38ef555..07396fb177 100644 --- a/test/resolv/test_dns.rb +++ b/test/resolv/test_dns.rb @@ -156,10 +156,8 @@ class TestResolvDNS < Test::Unit::TestCase 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 -- cgit v1.2.3