Skip to content

Commit

Permalink
Bump timeout on UDP with fallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
rthalley committed Mar 1, 2024
1 parent 51db0f6 commit 6fd940e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dns/name.py
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_async.py
Expand Up @@ -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)
Expand Down

0 comments on commit 6fd940e

Please sign in to comment.