Skip to content

Commit

Permalink
Fix model switch
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
  • Loading branch information
marceloneppel committed May 31, 2024
1 parent 1c000c5 commit ba84e96
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 ba84e96

Please sign in to comment.