summaryrefslogtreecommitdiff
path: root/test/resolv
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-21 01:53:38 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-21 01:53:38 +0000
commit569172765302d6b60a64e6499ba95973cd756ea3 (patch)
tree247c9dad7cd42a8b6925c4dfee629acd26518977 /test/resolv
parentd691a28d914e7e5152b7dc3f47da1baaf684fbfb (diff)
* test/monitor/test_monitor.rb: remove unused variabels.
* test/resolv/test_dns.rb: ditto. * test/rexml/test_functions.rb: ditto. * test/rss/test_setup_maker_itunes.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/resolv')
-rw-r--r--test/resolv/test_dns.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/resolv/test_dns.rb b/test/resolv/test_dns.rb
index 07396fb177..82f37f9e6a 100644
--- a/test/resolv/test_dns.rb
+++ b/test/resolv/test_dns.rb
@@ -38,7 +38,7 @@ class TestResolvDNS < Test::Unit::TestCase
dns.getresources("foo.example.org", Resolv::DNS::Resource::IN::A)
}
}
- msg, (af, client_port, _, client_address) = u.recvfrom(4096)
+ msg, (_, client_port, _, client_address) = u.recvfrom(4096)
id, word2, qdcount, ancount, nscount, arcount = msg.unpack("nnnnnn")
qr = (word2 & 0x8000) >> 15
opcode = (word2 & 0x7800) >> 11
@@ -65,7 +65,7 @@ class TestResolvDNS < Test::Unit::TestCase
assert_operator(rest, :start_with?, name)
rest = rest[name.length..-1]
assert_equal(4, rest.length)
- qtype, qclass = rest.unpack("nn")
+ qtype, _ = rest.unpack("nn")
assert_equal(1, qtype) # A
assert_equal(1, qtype) # IN
id = id