diff --git a/tests/integration/ha_tests/test_replication.py b/tests/integration/ha_tests/test_replication.py index 511f81542e..c95a4fe190 100644 --- a/tests/integration/ha_tests/test_replication.py +++ b/tests/integration/ha_tests/test_replication.py @@ -63,11 +63,11 @@ async def test_reelection(ops_test: OpsTest, continuous_writes, primary_start_ti # Remove the primary unit. primary_name = await get_primary(ops_test, app) - await ops_test.model.destroy_units([primary_name]) + await ops_test.model.destroy_units(primary_name) # Wait and get the primary again (which can be any unit, including the previous primary). - async with ops_test.fast_forward(): - await ops_test.model.wait_for_idle(apps=[app], status="active") + async with ops_test.fast_forward("60s"): + await ops_test.model.wait_for_idle(apps=[app], status="active", idle_period=30) await are_writes_increasing(ops_test, primary_name)