]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Bump timeout on UDP with fallback.
authorBob Halley <halley@dnspython.org>
Fri, 1 Mar 2024 13:03:11 +0000 (05:03 -0800)
committerBob Halley <halley@dnspython.org>
Fri, 1 Mar 2024 13:03:11 +0000 (05:03 -0800)
dns/name.py
tests/test_async.py

index 22ccb39211e113e68a3c4121d0a68181d6d9c9f8..39c5474493b99d80e673d4395f8489fe87b3b421 100644 (file)
@@ -59,11 +59,11 @@ class NameRelation(dns.enum.IntEnum):
 
     @classmethod
     def _maximum(cls):
-        return cls.COMMONANCESTOR
+        return cls.COMMONANCESTOR  # pragma: no cover
 
     @classmethod
     def _short_name(cls):
-        return cls.__name__
+        return cls.__name__  # pragma: no cover
 
 
 # Backwards compatibility
index 18ba96dbefd2681fccd2809bd379ba092b513c14..40508b0b764614952cb8ea688bd7a348f919d79a 100644 (file)
@@ -480,7 +480,7 @@ class AsyncTests(unittest.TestCase):
 
             async def run():
                 q = dns.message.make_query(qname, dns.rdatatype.DNSKEY)
-                return await dns.asyncquery.udp_with_fallback(q, address, timeout=2)
+                return await dns.asyncquery.udp_with_fallback(q, address, timeout=4)
 
             (_, tcp) = self.async_run(run)
             self.assertTrue(tcp)