Merge pull request #36661 from cachedout/fix_grain_test_race

Fix race between minion job timeout and cli test timeout
This commit is contained in:
Mike Place 2016-09-29 13:42:23 +09:00 committed by GitHub
commit 3249a11e71

View File

@ -70,7 +70,7 @@ class GrainsTargetingTest(integration.ShellCase):
# ping disconnected minion and ensure it times out and returns with correct message
try:
ret = ''
for item in self.run_salt('-G \'id:disconnected\' test.ping'):
for item in self.run_salt('-t 1 -G \'id:disconnected\' test.ping', timeout=30):
if item != 'disconnected:':
ret = item.strip()
self.assertEqual(ret, test_ret)