mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix the tear down function in integration.modules.test_grains.GrainsAppendTestCase
Fix the tear down function to just set the grain to an empty list instead of removing each individual item
This commit is contained in:
parent
83ed40c06a
commit
c179388b0e
1 changed files with 1 additions and 2 deletions
|
@ -152,8 +152,7 @@ class GrainsAppendTestCase(ModuleCase):
|
|||
GRAIN_VAL = 'my-grain-val'
|
||||
|
||||
def tearDown(self):
|
||||
for item in self.run_function('grains.get', [self.GRAIN_KEY]):
|
||||
self.run_function('grains.remove', [self.GRAIN_KEY, item])
|
||||
self.run_function('grains.setval', [self.GRAIN_KEY, []])
|
||||
|
||||
def test_grains_append(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue