From 3cdf0baf2d7ce0e104e00351effeb4e8bda787f4 Mon Sep 17 00:00:00 2001 From: Dragomir Penev Date: Mon, 2 Dec 2024 00:57:48 +0200 Subject: [PATCH] Tweak replication test --- tests/integration/ha_tests/test_replication.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)