mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 01:33:09 +00: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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user