From ba84e96ed1d3fa98d9fa7d0e38543a06677b00b5 Mon Sep 17 00:00:00 2001 From: Marcelo Henrique Neppel Date: Fri, 31 May 2024 16:52:52 -0300 Subject: [PATCH] Fix model switch Signed-off-by: Marcelo Henrique Neppel --- tests/integration/ha_tests/test_async_replication.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration/ha_tests/test_async_replication.py b/tests/integration/ha_tests/test_async_replication.py index 7b3de97680..96bdb3afa4 100644 --- a/tests/integration/ha_tests/test_async_replication.py +++ b/tests/integration/ha_tests/test_async_replication.py @@ -75,6 +75,7 @@ async def second_model(ops_test: OpsTest, first_model, request) -> Model: subprocess.run( ["juju", "set-model-constraints", f"arch={architecture.architecture}"], check=True ) + subprocess.run(["juju", "switch", first_model.info.name], check=True) second_model = Model() await second_model.connect(model_name=second_model_name) yield second_model