diff --git a/tests/pytests/unit/client/ssh/test_ssh.py b/tests/pytests/unit/client/ssh/test_ssh.py index 7f2bcb1b40ff..030d3bb7ee6e 100644 --- a/tests/pytests/unit/client/ssh/test_ssh.py +++ b/tests/pytests/unit/client/ssh/test_ssh.py @@ -500,7 +500,13 @@ def test_handle_routine_single_run_invalid_retcode(opts, target, caplog): ( { "id": "localhost", - "ret": "Something went seriously wrong", + "ret": { + "stdout": "", + "stderr": "Something went seriously wrong", + "retcode": 1, + "parsed": None, + "_error": "The command resulted in a non-zero exit code", + }, }, 1, )