Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paulomach committed Jan 15, 2025
1 parent c0d8b6e commit 22da12f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/integration/high_availability/test_async_replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ async def test_standby_promotion(
assert results[0] > 1, "No data was written to the database"

cluster_set_status = await get_cluster_status(leader_unit, cluster_set=True)
assert cluster_set_status["clusters"]["cuzco"]["clusterrole"] == "primary", (
"standby not promoted to primary"
)
assert (
cluster_set_status["clusters"]["cuzco"]["clusterrole"] == "primary"
), "standby not promoted to primary"


@pytest.mark.group(1)
Expand Down Expand Up @@ -294,12 +294,12 @@ async def test_failover(ops_test: OpsTest, first_model: Model, second_model: Mod
)

cluster_set_status = await get_cluster_status(leader_unit, cluster_set=True)
assert cluster_set_status["clusters"]["lima"]["clusterrole"] == "primary", (
"standby not promoted to primary"
)
assert cluster_set_status["clusters"]["cuzco"]["globalstatus"] == "invalidated", (
"old primary not invalidated"
)
assert (
cluster_set_status["clusters"]["lima"]["clusterrole"] == "primary"
), "standby not promoted to primary"
assert (
cluster_set_status["clusters"]["cuzco"]["globalstatus"] == "invalidated"
), "old primary not invalidated"

# restore mysqld process
for unit in second_model_units:
Expand Down

0 comments on commit 22da12f

Please sign in to comment.