Skip to content

Commit

Permalink
Wait for exact number of units after scale down
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
  • Loading branch information
marceloneppel committed Aug 2, 2024
1 parent a870470 commit d9607e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/integration/ha_tests/test_async_replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,11 @@ async def test_async_replication_failover_in_main_cluster(
async with ops_test.fast_forward(FAST_INTERVAL), fast_forward(second_model, FAST_INTERVAL):
await gather(
first_model.wait_for_idle(
apps=[DATABASE_APP_NAME], status="active", idle_period=IDLE_PERIOD, timeout=TIMEOUT
apps=[DATABASE_APP_NAME],
status="active",
idle_period=IDLE_PERIOD,
timeout=TIMEOUT,
wait_for_exact_units=(CLUSTER_SIZE - 1),
),
second_model.wait_for_idle(
apps=[DATABASE_APP_NAME], status="active", idle_period=IDLE_PERIOD, timeout=TIMEOUT
Expand Down

0 comments on commit d9607e6

Please sign in to comment.