From 6fd940eb377757e611ac94b3af12716320bab680 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Fri, 1 Mar 2024 05:03:11 -0800 Subject: [PATCH] Bump timeout on UDP with fallback. --- dns/name.py | 4 ++-- tests/test_async.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dns/name.py b/dns/name.py index 22ccb392..39c54744 100644 --- a/dns/name.py +++ b/dns/name.py @@ -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 diff --git a/tests/test_async.py b/tests/test_async.py index 18ba96db..40508b0b 100644 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -480,7 +480,7 @@ def testQueryUDPFallback(self): 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)