From bd4b7dede95d0a487cb5dff58733f55a4217a178 Mon Sep 17 00:00:00 2001 From: Dragomir Penev Date: Sun, 30 Jun 2024 21:44:03 +0300 Subject: [PATCH] Increase timeou and log unit that is still up --- tests/integration/ha_tests/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/ha_tests/helpers.py b/tests/integration/ha_tests/helpers.py index 98e0589b18..daa755f775 100644 --- a/tests/integration/ha_tests/helpers.py +++ b/tests/integration/ha_tests/helpers.py @@ -68,7 +68,7 @@ async def are_all_db_processes_down(ops_test: OpsTest, process: str) -> bool: pgrep_cmd = ("pgrep", "-x", process) try: - for attempt in Retrying(stop=stop_after_delay(60), wait=wait_fixed(3)): + for attempt in Retrying(stop=stop_after_delay(400), wait=wait_fixed(3)): with attempt: for unit in ops_test.model.applications[app].units: _, processes, _ = await ops_test.juju("ssh", unit.name, *pgrep_cmd) @@ -79,6 +79,7 @@ async def are_all_db_processes_down(ops_test: OpsTest, process: str) -> bool: # If something was returned, there is a running process. if len(processes) > 0: + logger.info("Unit %s not yey down" % unit.name) raise ProcessRunningError except RetryError: return False