Skip to content

Commit

Permalink
Update tests/unittests/cmd/test_status.py
Browse files Browse the repository at this point in the history
Co-authored-by: Chad Smith <chad.smith@canonical.com>
  • Loading branch information
TheRealFalcon and blackboxsw committed Feb 2, 2024
1 parent 8733800 commit c8dea59
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/unittests/cmd/test_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,11 +1049,9 @@ def test_query_systemctl_wait_with_exception_status(self, mocker):
m_sleep = mocker.patch(f"{M_PATH}sleep")
m_subp = mocker.patch(
f"{M_PATH}subp.subp",
side_effect=[
subp.ProcessExecutionError("Message recipient disconnected"),
subp.ProcessExecutionError("Message recipient disconnected"),
subp.ProcessExecutionError("Message recipient disconnected"),
],
side_effect=subp.ProcessExecutionError(
"Message recipient disconnected"
),
)

assert (
Expand Down

0 comments on commit c8dea59

Please sign in to comment.