|
|
|
@ -296,7 +296,7 @@ def initTests(opts):
|
|
|
|
|
|
|
|
|
|
# precache all invalid ip's (TEST-NET-1, ..., TEST-NET-3 according to RFC 5737): |
|
|
|
|
c = DNSUtils.CACHE_ipToName |
|
|
|
|
c.clear = lambda: logSys.warn('clear CACHE_ipToName is disabled in test suite') |
|
|
|
|
c.clear = lambda: logSys.warning('clear CACHE_ipToName is disabled in test suite') |
|
|
|
|
# increase max count and max time (too many entries, long time testing): |
|
|
|
|
c.setOptions(maxCount=10000, maxTime=5*60) |
|
|
|
|
for i in range(256): |
|
|
|
@ -314,7 +314,7 @@ def initTests(opts):
|
|
|
|
|
c.set('8.8.4.4', 'dns.google') |
|
|
|
|
# precache all dns to ip's used in test cases: |
|
|
|
|
c = DNSUtils.CACHE_nameToIp |
|
|
|
|
c.clear = lambda: logSys.warn('clear CACHE_nameToIp is disabled in test suite') |
|
|
|
|
c.clear = lambda: logSys.warning('clear CACHE_nameToIp is disabled in test suite') |
|
|
|
|
for i in ( |
|
|
|
|
('999.999.999.999', set()), |
|
|
|
|
('abcdef.abcdef', set()), |
|
|
|
|