mirror of https://github.com/fail2ban/fail2ban
smaller inertance inside test-cases (amend to d153555a07
with decreasing default wait operation that litle bit speedup test-cases)
parent
ab0c28260b
commit
e7fa74b989
|
@ -243,6 +243,9 @@ def initTests(opts):
|
||||||
raise unittest.SkipTest('Skip test because of "--fast"')
|
raise unittest.SkipTest('Skip test because of "--fast"')
|
||||||
unittest.F2B.SkipIfFast = F2B_SkipIfFast
|
unittest.F2B.SkipIfFast = F2B_SkipIfFast
|
||||||
else:
|
else:
|
||||||
|
# smaller inertance inside test-cases (litle speedup):
|
||||||
|
Utils.DEFAULT_SLEEP_TIME = 0.25
|
||||||
|
Utils.DEFAULT_SLEEP_INTERVAL = 0.025
|
||||||
# sleep intervals are large - use replacement for sleep to check time to sleep:
|
# sleep intervals are large - use replacement for sleep to check time to sleep:
|
||||||
_org_sleep = time.sleep
|
_org_sleep = time.sleep
|
||||||
def _new_sleep(v):
|
def _new_sleep(v):
|
||||||
|
|
Loading…
Reference in New Issue