Fix a flaky test and mark another as flaky

This commit is contained in:
Daniel A. Wozniak 2018-08-31 12:32:24 -07:00 committed by Daniel A Wozniak
parent 4ac4305c18
commit f214929740
2 changed files with 3 additions and 2 deletions

View File

@ -616,4 +616,4 @@ class CPModuleTest(ModuleCase):
os.unlink(tgt_cache_file)
def test_envs(self):
self.assertEqual(self.run_function('cp.envs'), ['base', 'prod'])
self.assertEqual(sorted(self.run_function('cp.envs')), sorted(['base', 'prod']))

View File

@ -6,12 +6,13 @@ from __future__ import absolute_import
# Import Salt Testing libs
from tests.support.case import ModuleCase
from tests.support.unit import skipIf
from tests.support.helpers import destructiveTest
from tests.support.helpers import destructiveTest, flaky
# Import Salt Libs
import salt.utils
@flaky
@skipIf(not salt.utils.is_windows(), 'Tests for only Windows')
class NTPTest(ModuleCase):
'''