fix reverse dns lookup tests

not sure why, but the old ones were failing half of the time.
let's try the latest shit from cloudflare. :)
This commit is contained in:
Thomas Waldmann 2018-04-25 18:43:43 +02:00
parent 322e487dc1
commit b2e2ddf949

View File

@ -119,11 +119,11 @@ class TestQuery(object):
class TestReverseLookup(object): class TestReverseLookup(object):
def test_rev_lookup_v4(self): def test_rev_lookup_v4(self):
name, ip = 'google-public-dns-a.google.com', '8.8.8.8' name, ip = '1dot1dot1dot1.cloudflare-dns.com', '1.1.1.1'
assert rev_lookup(ip) == name assert rev_lookup(ip) == name
def test_rev_lookup_v6(self): def test_rev_lookup_v6(self):
name, ip = 'google-public-dns-a.google.com', '2001:4860:4860::8888' name, ip = '1dot1dot1dot1.cloudflare-dns.com', '2606:4700:4700::1111'
assert rev_lookup(ip) == name assert rev_lookup(ip) == name