We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27c97f4 commit 8382d0dCopy full SHA for 8382d0d
tests/integration/ha_tests/test_self_healing.py
@@ -570,16 +570,13 @@ async def test_deploy_zero_units(ops_test: OpsTest):
570
await create_test_data(connection_string)
571
572
unit_ip_addresses = []
573
- storage_id_list = []
574
primary_storage = ""
575
for unit in ops_test.model.applications[app].units:
576
# Save IP addresses of units
577
unit_ip_addresses.append(await get_unit_ip(ops_test, unit.name))
578
579
# Save detached storage ID
580
- if primary_name != unit.name:
581
- storage_id_list.append(storage_id(ops_test, unit.name))
582
- else:
+ if await unit.is_leader_from_status:
583
primary_storage = storage_id(ops_test, unit.name)
584
585
# Scale the database to zero units.
0 commit comments