From 0e99dd741cb7b239d1bfeaf6ddcad90cd8510760 Mon Sep 17 00:00:00 2001 From: twangboy Date: Tue, 12 Jun 2018 17:45:19 -0600 Subject: [PATCH] Fix logic for non-root --- tests/unit/utils/test_parsers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/utils/test_parsers.py b/tests/unit/utils/test_parsers.py index 0a58b4de57..36b14a0072 100644 --- a/tests/unit/utils/test_parsers.py +++ b/tests/unit/utils/test_parsers.py @@ -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()