Skip to content

Commit 8382d0d

Browse files
committed
remove replication storage list
1 parent 27c97f4 commit 8382d0d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/integration/ha_tests/test_self_healing.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -570,16 +570,13 @@ async def test_deploy_zero_units(ops_test: OpsTest):
570570
await create_test_data(connection_string)
571571

572572
unit_ip_addresses = []
573-
storage_id_list = []
574573
primary_storage = ""
575574
for unit in ops_test.model.applications[app].units:
576575
# Save IP addresses of units
577576
unit_ip_addresses.append(await get_unit_ip(ops_test, unit.name))
578577

579578
# Save detached storage ID
580-
if primary_name != unit.name:
581-
storage_id_list.append(storage_id(ops_test, unit.name))
582-
else:
579+
if await unit.is_leader_from_status:
583580
primary_storage = storage_id(ops_test, unit.name)
584581

585582
# Scale the database to zero units.

0 commit comments

Comments
 (0)