Skip to content

Commit

Permalink
Increase timeou and log unit that is still up
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirp committed Jun 30, 2024
1 parent 51832eb commit bd4b7de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/ha_tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit bd4b7de

Please sign in to comment.