Skip to content

Commit 8c5a06e

Browse files
author
Alexandre Vincent
committed
[fix] Update _exec_command_return_value mock after _exec_command update
1 parent ff851c0 commit 8c5a06e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openwisp_controller/connection/tests/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _exec_command_return_value(
4646
stderr_ = mock.Mock()
4747
stdin_.read().decode.return_value = stdin
4848
stdout_.read().decode.return_value = stdout
49-
stdout_.channel.recv_exit_status.return_value = exit_code
49+
stdout_.channel.exit_status = exit_code
5050
stderr_.read().decode.return_value = stderr
5151
return (stdin_, stdout_, stderr_)
5252

0 commit comments

Comments
 (0)