mirror of
https://github.com/sprockets/sprockets-postgres.git
synced 2024-12-27 03:00:19 +00:00
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 ``` [<ares_query_srv_result> host=alt2.xmpp-server.l.google.com, port=5269, priority=20, weight=0, ttl=-1, <ares_query_srv_result> host=xmpp-server.l.google.com, port=5269, priority=5, weight=0, ttl=-1, <ares_query_srv_result> host=alt4.xmpp-server.l.google.com, port=5269, priority=20, weight=0, ttl=-1, <ares_query_srv_result> host=alt1.xmpp-server.l.google.com, port=5269, priority=20, weight=0, ttl=-1, <ares_query_srv_result> 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`
This commit is contained in:
parent
a424ce0b84
commit
f0adbedf51
1 changed files with 0 additions and 1 deletions
1
tests.py
1
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()
|
||||
|
|
Loading…
Reference in a new issue