mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix logic for non-root
This commit is contained in:
parent
2d2534a688
commit
0e99dd741c
@ -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…
Reference in New Issue
Block a user