Skip to content

Commit

Permalink
Fix model switch (#483)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
  • Loading branch information
marceloneppel authored Jun 4, 2024
1 parent 85f92e9 commit 16d10d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration/ha_tests/test_async_replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16d10d8

Please sign in to comment.