mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
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:
commit
3249a11e71
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user