From f0adbedf5147b97d3681ed72a8bcba4dc9335298 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Wed, 4 Aug 2021 19:36:33 -0400 Subject: [PATCH] Fix broken test ttl was -1 for this host, thus the test failed. Not sure what the intention of this test was; ttl is never used by sprockets-postgres. --- aiodns was returning the following records for this lookup ``` [ host=alt2.xmpp-server.l.google.com, port=5269, priority=20, weight=0, ttl=-1, host=xmpp-server.l.google.com, port=5269, priority=5, weight=0, ttl=-1, host=alt4.xmpp-server.l.google.com, port=5269, priority=20, weight=0, ttl=-1, host=alt1.xmpp-server.l.google.com, port=5269, priority=20, weight=0, ttl=-1, host=alt3.xmpp-server.l.google.com, port=5269, priority=20, weight=0, ttl=-1] ``` Also noticed a ttl of -1 with `_xmpp-server._tcp.jabber.org` --- tests.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests.py b/tests.py index d0020cc..44b6459 100644 --- a/tests.py +++ b/tests.py @@ -743,7 +743,6 @@ class SRVTestCase(asynctest.TestCase): obj = Application() result = await obj._resolve_srv('_xmpp-server._tcp.google.com') self.assertIsInstance(result[0], pycares.ares_query_srv_result) - self.assertGreater(result[0].ttl, 0) async def test_srv_error(self): obj = Application()