diff options
Diffstat (limited to 'test/resolv')
-rw-r--r-- | test/resolv/test_dns.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/resolv/test_dns.rb b/test/resolv/test_dns.rb index da7fa43dbc..8334622410 100644 --- a/test/resolv/test_dns.rb +++ b/test/resolv/test_dns.rb @@ -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 |