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:
parent
9f368b5ac9
commit
1ef0a76c6c
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue