Skip to content

Commit 171b53f

Browse files
committed
reduce time out
1 parent 04bc51c commit 171b53f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/integration/ha_tests/test_self_healing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ async def test_deploy_zero_units(ops_test: OpsTest):
598598
# Scale the database to one unit.
599599
logger.info("scaling database to one unit")
600600
await add_unit_with_storage(ops_test, app=app, storage=primary_storage)
601-
await ops_test.model.wait_for_idle(status="active", timeout=3000)
601+
await ops_test.model.wait_for_idle(status="active", timeout=1500)
602602

603603
connection_string, primary_name = await get_db_connection(ops_test, dbname=dbname)
604604
logger.info("checking whether writes are increasing")
@@ -610,7 +610,6 @@ async def test_deploy_zero_units(ops_test: OpsTest):
610610
# Scale the database to three units.
611611
logger.info("scaling database to two unit")
612612
await scale_application(ops_test, application_name=app, count=2)
613-
await ops_test.model.wait_for_idle(status="active", timeout=3000)
614613
for unit in ops_test.model.applications[app].units:
615614
if not await unit.is_leader_from_status():
616615
assert await reused_replica_storage(

0 commit comments

Comments
 (0)