diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-21 07:18:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-21 07:18:18 +0000 |
commit | 1ef0a76c6c6556bf6ab155e2ad28a23748ee59ef (patch) | |
tree | fabeb4ef1fa19583c864475c53768605cb576371 /test/resolv | |
parent | 9f368b5ac9b0cd889ed10095a6c1fcee8068db89 (diff) | |
download | ruby-1ef0a76c6c6556bf6ab155e2ad28a23748ee59ef.tar.gz |
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
Diffstat (limited to 'test/resolv')
-rw-r--r-- | test/resolv/test_dns.rb | 6 |
1 files changed, 2 insertions, 4 deletions
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 |