Give a chance to test to read output.

Should be completely refactored in future to something less random.
parent 53eb0d06
...@@ -780,6 +780,7 @@ class TestSlapgridCPWithMasterWatchdog(MasterMixin, unittest.TestCase): ...@@ -780,6 +780,7 @@ class TestSlapgridCPWithMasterWatchdog(MasterMixin, unittest.TestCase):
if os.path.getsize(daemon_log) > 0: if os.path.getsize(daemon_log) > 0:
break break
time.sleep(0.1) time.sleep(0.1)
time.sleep(0.1)
self.assertTrue('Failing' in open(daemon_log, 'r').read()) self.assertTrue('Failing' in open(daemon_log, 'r').read())
tries = 200 tries = 200
while tries > 0: while tries > 0:
...@@ -831,7 +832,7 @@ class TestSlapgridCPWithMasterWatchdog(MasterMixin, unittest.TestCase): ...@@ -831,7 +832,7 @@ class TestSlapgridCPWithMasterWatchdog(MasterMixin, unittest.TestCase):
if os.path.getsize(daemon_log) > 0: if os.path.getsize(daemon_log) > 0:
break break
time.sleep(0.1) time.sleep(0.1)
time.sleep(1) time.sleep(0.1)
self.assertTrue('Failing' in open(daemon_log, 'r').read()) self.assertTrue('Failing' in open(daemon_log, 'r').read())
tries = 200 tries = 200
while tries > 0: while tries > 0:
......
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