Commit 33722a40 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

Fix DNS resolution test randomness by using eu.web.vifib.com domain

parent ed0ae681
...@@ -37,13 +37,11 @@ DNS_EXPECTED_LIST = ["85.118.38.162", "176.31.129.213"] ...@@ -37,13 +37,11 @@ DNS_EXPECTED_LIST = ["85.118.38.162", "176.31.129.213"]
class TestDNSBench(unittest.TestCase): class TestDNSBench(unittest.TestCase):
def test_dnsbench_ok(self): def test_dnsbench_ok(self):
""" Test dns resolution, this test may fail if """
not ran from Europe. Test dns resolution
# Update domain later.
""" """
info = dnsbench.resolve( info = dnsbench.resolve(
"www.erp5.com", DNS_EXPECTED_LIST) "eu.web.vifib.com", DNS_EXPECTED_LIST)
self.assertEqual(info[0], 'DNS') self.assertEqual(info[0], 'DNS')
self.assertEqual(info[1], 'www.erp5.com') self.assertEqual(info[1], 'www.erp5.com')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment