mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
BF+TST: Introduce delay before stopping all jails in testStartStopAllJail. fixes #146
This commit is contained in:
parent
1330c7d4b8
commit
99bf14851f
1 changed files with 4 additions and 0 deletions
|
|
@ -211,6 +211,10 @@ class Transmitter(unittest.TestCase):
|
|||
self.__transm.proceed(["start", self.jailName]), (0, None))
|
||||
self.assertEqual(
|
||||
self.__transm.proceed(["start", "TestJail2"]), (0, None))
|
||||
# yoh: workaround for gh-146. I still think that there is some
|
||||
# race condition and missing locking somewhere, but for now
|
||||
# giving it a small delay reliably helps to proceed with tests
|
||||
time.sleep(0.1)
|
||||
self.assertEqual(self.__transm.proceed(["stop", "all"]), (0, None))
|
||||
time.sleep(1)
|
||||
self.assertRaises(
|
||||
|
|
|
|||
Loading…
Reference in a new issue