Skip to content

Commit

Permalink
Fix backups integration test
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
  • Loading branch information
marceloneppel committed Jun 11, 2024
1 parent 0e5877c commit 936b115
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,10 +1036,10 @@ async def wait_for_idle_on_blocked(
unit = ops_test.model.units.get(f"{database_app_name}/{unit_number}")
await asyncio.gather(
ops_test.model.wait_for_idle(apps=[other_app_name], status="active"),
ops_test.model.wait_for_idle(
apps=[database_app_name], status="blocked", raise_on_blocked=False
ops_test.model.block_until(
lambda: unit.workload_status == "blocked"
and unit.workload_status_message == status_message
),
ops_test.model.block_until(lambda: unit.workload_status_message == status_message),
)


Expand Down

0 comments on commit 936b115

Please sign in to comment.