summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--test/test_respawn.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/test/test_respawn.py b/test/test_respawn.py
index edbfa2a8..5a5d6126 100644
--- a/test/test_respawn.py
+++ b/test/test_respawn.py
@@ -44,11 +44,16 @@ class TestRespawn(TestApplicationPython):
return re.findall(str(ppid) + r'.*' + name, ps_output)
def smoke_test(self, unit_pid):
- for _ in range(5):
- assert 'success' in self.conf(
- '1', 'applications/' + self.app_name + '/processes'
- )
- assert self.get()['status'] == 200
+ for _ in range(10):
+ r = self.conf('1', 'applications/' + self.app_name + '/processes')
+
+ if 'success' in r:
+ break
+
+ time.sleep(0.1)
+
+ assert 'success' in r
+ assert self.get()['status'] == 200
# Check if the only one router, controller,
# and application processes running.