Skip to content

Commit 7d0ad49

Browse files
committed
Revert zero unit guard in scale_app_units
1 parent ea4906e commit 7d0ad49

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/integration/helpers_ha.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,10 @@ def scale_app_units(juju: Juju, app_name: str, num_units: int) -> None:
142142
timeout=20 * MINUTE_SECS,
143143
)
144144

145-
if num_units > 0:
146-
juju.wait(
147-
ready=wait_for_apps_status(jubilant_backports.all_active, app_name),
148-
timeout=20 * MINUTE_SECS,
149-
)
145+
juju.wait(
146+
ready=wait_for_apps_status(jubilant_backports.all_active, app_name),
147+
timeout=20 * MINUTE_SECS,
148+
)
150149

151150

152151
def get_unit_by_number(juju: Juju, app_name: str, unit_number: int) -> str:

0 commit comments

Comments
 (0)