From: Bob Halley Date: Fri, 1 Mar 2024 12:51:43 +0000 (-0800) Subject: Bump timeout on UDP with fallback. X-Git-Tag: v2.7.0rc1~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51db0f61e45ce0f1a3f14400f8729e7bb33695cc;p=thirdparty%2Fdnspython.git Bump timeout on UDP with fallback. --- diff --git a/tests/test_query.py b/tests/test_query.py index 62007e85..dee6d3b2 100644 --- a/tests/test_query.py +++ b/tests/test_query.py @@ -210,7 +210,7 @@ class QueryTests(unittest.TestCase): for address in query_addresses: qname = dns.name.from_text(".") q = dns.message.make_query(qname, dns.rdatatype.DNSKEY) - (_, tcp) = dns.query.udp_with_fallback(q, address, timeout=2) + (_, tcp) = dns.query.udp_with_fallback(q, address, timeout=4) self.assertTrue(tcp) def testQueryUDPFallbackWithSocket(self): @@ -226,7 +226,7 @@ class QueryTests(unittest.TestCase): qname = dns.name.from_text(".") q = dns.message.make_query(qname, dns.rdatatype.DNSKEY) (_, tcp) = dns.query.udp_with_fallback( - q, address, udp_sock=udp_s, tcp_sock=tcp_s, timeout=2 + q, address, udp_sock=udp_s, tcp_sock=tcp_s, timeout=4 ) self.assertTrue(tcp) @@ -825,8 +825,11 @@ class IgnoreErrors(unittest.TestCase): bad_r.flags |= dns.flags.TC bad_r_wire = bad_r.to_wire() self.mock_receive( - bad_r_wire, ("127.0.0.1", 53), self.good_r_wire, ("127.0.0.1", 53), - raise_on_truncation=True + bad_r_wire, + ("127.0.0.1", 53), + self.good_r_wire, + ("127.0.0.1", 53), + raise_on_truncation=True, ) def test_bad_wire_not_ignored(self):