Skip to content

Commit

Permalink
Code review tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoyt committed Oct 17, 2023
1 parent f7c107f commit dc44df5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ops/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1632,10 +1632,10 @@ def evaluate_status(self) -> None:
statuses were added.
Tests should normally call this and then assert that ``self.model.app.status``
or ``self.model.unit.status`` is the value expected.
or ``self.model.unit.status`` is the value expected. This method resets the
added statuses before triggering the collect-status events.
"""
if self._backend._is_leader:
self.charm.app._collected_statuses = []
self.charm.app._collected_statuses = []
self.charm.unit._collected_statuses = []
charm._evaluate_status(self.charm)

Expand Down

0 comments on commit dc44df5

Please sign in to comment.