Skip to content

Commit 16d10d8

Browse files
Fix model switch (#483)
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
1 parent 85f92e9 commit 16d10d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/integration/ha_tests/test_async_replication.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ async def second_model(ops_test: OpsTest, first_model, request) -> Model:
7575
subprocess.run(
7676
["juju", "set-model-constraints", f"arch={architecture.architecture}"], check=True
7777
)
78+
subprocess.run(["juju", "switch", first_model.info.name], check=True)
7879
second_model = Model()
7980
await second_model.connect(model_name=second_model_name)
8081
yield second_model

0 commit comments

Comments
 (0)