BF+TST: Introduce delay before stopping all jails in testStartStopAllJail. fixes #146

This commit is contained in:
Yaroslav Halchenko 2013-03-22 09:20:21 -04:00
parent 1330c7d4b8
commit 99bf14851f

View file

@ -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(