mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Add a sleep to give the minion a chance to catch grain refresh in test
This commit is contained in:
parent
90c5cc8c4d
commit
82dde7d7e7
@ -1,6 +1,10 @@
|
||||
'''
|
||||
Test the grains module
|
||||
'''
|
||||
# Import python libs
|
||||
import time
|
||||
|
||||
# Import salt libs
|
||||
import integration
|
||||
|
||||
|
||||
@ -67,6 +71,7 @@ class TestModulesGrains(integration.ModuleCase):
|
||||
'grains.setval',
|
||||
['setgrain', 'grainval']),
|
||||
{'setgrain': 'grainval'})
|
||||
time.sleep(2)
|
||||
self.assertTrue(
|
||||
self.run_function(
|
||||
'grains.item', ['setgrain']
|
||||
|
Loading…
Reference in New Issue
Block a user