mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix logic for non-root
This commit is contained in:
parent
2d2534a688
commit
0e99dd741c
1 changed files with 2 additions and 2 deletions
|
@ -1065,9 +1065,9 @@ class DaemonMixInTestCase(TestCase):
|
|||
'''
|
||||
if salt.utils.platform.is_windows():
|
||||
patch_args = ('salt.utils.win_functions.is_admin',
|
||||
MagicMock(return_value=True))
|
||||
MagicMock(return_value=False))
|
||||
else:
|
||||
patch_args = ('os.getuid', MagicMock(return_value=0))
|
||||
patch_args = ('os.getuid', MagicMock(return_value=1000))
|
||||
|
||||
with patch(*patch_args):
|
||||
self.daemon_mixin._mixin_before_exit()
|
||||
|
|
Loading…
Add table
Reference in a new issue