mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_dns.rb: fix scope
* test/resolv/test_dns.rb (test_query_ipv4_address): fix local variables scope. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d8d326c97a
commit
fb933bf70b
1 changed files with 1 additions and 3 deletions
|
@ -53,9 +53,7 @@ class TestResolvDNS < Test::Unit::TestCase
|
|||
}
|
||||
}
|
||||
server_thread = Thread.new {
|
||||
timeout(5) do
|
||||
msg, (_, client_port, _, client_address) = u.recvfrom(4096)
|
||||
end
|
||||
msg, (_, client_port, _, client_address) = timeout(5) {u.recvfrom(4096)}
|
||||
id, word2, qdcount, ancount, nscount, arcount = msg.unpack("nnnnnn")
|
||||
qr = (word2 & 0x8000) >> 15
|
||||
opcode = (word2 & 0x7800) >> 11
|
||||
|
|
Loading…
Reference in a new issue