1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2013-12-21 07:18:18 +00:00
parent 9f368b5ac9
commit 1ef0a76c6c

View file

@ -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