Skip to content

Commit 785f85e

Browse files
committed
handle error: storage belongs to different cluster
1 parent 63e12eb commit 785f85e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/ha_tests/test_self_healing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ async def test_deploy_zero_units(ops_test: OpsTest, charm):
618618
await ops_test.model.wait_for_idle(apps=[APP_NAME, APPLICATION_NAME], status="active", timeout=1500)
619619

620620
logger.info("scaling database to tow unit using foreign cluster's storage")
621-
new_unit = await add_unit_with_storage(ops_test, app=app, storage=second_storage)
621+
new_unit = await add_unit_with_storage(ops_test, app=app, storage=second_storage, is_blocked=True)
622622

623623
logger.info(f"remove unit {new_unit.name} with storage from application {SECOND_APPLICATION}")
624624
await ops_test.model.destroy_units(new_unit.name)

0 commit comments

Comments
 (0)