Skip to content

Commit

Permalink
Fix TXT CHAOS test
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed May 14, 2021
1 parent 7bb002e commit 5d94ab0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def test_query_bad_type(self):
self.assertRaises(ValueError, self.resolver.query, 'google.com', 'XXX')

def test_query_txt_chaos(self):
# TODO: this will fail if your resolver does not support the query
# TODO: create a separate resolver object for testing?
self.resolver = aiodns.DNSResolver(loop=self.loop)
self.resolver.nameservers = ['1.1.1.1']
f = self.resolver.query('id.server', 'TXT', 'CHAOS')
result = self.loop.run_until_complete(f)
self.assertTrue(result)
Expand Down Expand Up @@ -157,4 +157,3 @@ def test_query_bad_chars(self):

if __name__ == '__main__':
unittest.main(verbosity=2)

0 comments on commit 5d94ab0

Please sign in to comment.