Add a sleep to give the minion a chance to catch grain refresh in test

This commit is contained in:
Thomas S Hatch 2013-05-29 00:12:30 -06:00
parent 90c5cc8c4d
commit 82dde7d7e7

View File

@ -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']