mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-05 00:31:37 -07:00
Try to get correct buffer size to avoid races (#53547)
* Try to get correct buffer size to avoid races fixes #51393 * fix test, mock buffer function since all is mocked
This commit is contained in:
parent
86405b8fe4
commit
e280f2f7b0
3 changed files with 37 additions and 18 deletions
|
@ -83,6 +83,7 @@ def rc_am(mocker, am, mock_os, mock_subprocess):
|
|||
am.fail_json = mocker.MagicMock(side_effect=SystemExit)
|
||||
am._os = mock_os
|
||||
am._subprocess = mock_subprocess
|
||||
am.get_buffer_size = mocker.MagicMock(return_value=900)
|
||||
yield am
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue