Skip to content

Commit

Permalink
Don't fail on downscale error
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirp committed Mar 1, 2024
1 parent 061cb21 commit a7fcd78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tests/integration/new_relations/test_new_relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,11 @@ async def test_relation_data_is_updated_correctly_when_scaling(ops_test: OpsTest
# Remove the original units.
await ops_test.model.applications[DATABASE_APP_NAME].destroy_units(*units_to_remove)
await ops_test.model.wait_for_idle(
apps=[DATABASE_APP_NAME], status="active", timeout=1500, wait_for_exact_units=2
apps=[DATABASE_APP_NAME],
status="active",
timeout=1500,
wait_for_exact_units=2,
raise_on_error=False,
)

# Get the updated connection data and assert it can be used
Expand Down
6 changes: 5 additions & 1 deletion tests/integration/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ async def test_relation_data_is_updated_correctly_when_scaling(ops_test: OpsTest
# Remove the original units.
await ops_test.model.applications[DATABASE_APP_NAME].destroy_units(*units_to_remove)
await ops_test.model.wait_for_idle(
apps=[DATABASE_APP_NAME], status="active", timeout=1500, wait_for_exact_units=2
apps=[DATABASE_APP_NAME],
status="active",
timeout=1500,
wait_for_exact_units=2,
raise_on_error=False,
)

# Get the updated connection data and assert it can be used
Expand Down

0 comments on commit a7fcd78

Please sign in to comment.