Skip to content

Commit

Permalink
Change code to test canonical/pebble#275
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloneppel committed Aug 18, 2023
1 parent f28418f commit bfa885e
Show file tree
Hide file tree
Showing 3 changed files with 289 additions and 289 deletions.
4 changes: 2 additions & 2 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,8 +1025,8 @@ def _on_update_status(self, _) -> None:
self.unit.status = BlockedStatus(validation_message)
return

if self._handle_processes_failures():
return
# if self._handle_processes_failures():
# return

self._set_primary_status_message()

Expand Down
6 changes: 3 additions & 3 deletions tests/integration/ha_tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ async def change_wal_settings(

async def is_cluster_updated(ops_test: OpsTest, primary_name: str) -> None:
# Verify that the old primary is now a replica.
assert await is_replica(
ops_test, primary_name
), "there are more than one primary in the cluster."
# assert await is_replica(
# ops_test, primary_name
# ), "there are more than one primary in the cluster."

# Verify that all units are part of the same cluster.
member_ips = await fetch_cluster_members(ops_test)
Expand Down
Loading

0 comments on commit bfa885e

Please sign in to comment.