Add some timeouts

This commit is contained in:
twangboy 2018-11-02 17:11:50 -06:00
parent 01708258ba
commit 6948274c25
No known key found for this signature in database
GPG Key ID: 93FF3BDEB278C9EB

View File

@ -23,6 +23,7 @@ class StdTest(ModuleCase):
cmd_iter = self.client.cmd_cli(
'minion',
'test.ping',
timeout=20,
)
for ret in cmd_iter:
self.assertTrue(ret['minion'])
@ -31,7 +32,8 @@ class StdTest(ModuleCase):
cmd_iter = self.client.cmd_cli(
'minion',
'test.sleep',
[6]
[6],
timeout=20,
)
num_ret = 0
for ret in cmd_iter:
@ -50,6 +52,7 @@ class StdTest(ModuleCase):
cmd_iter = self.client.cmd_cli(
'footest',
'test.ping',
timeout=20,
)
num_ret = 0
for ret in cmd_iter:
@ -113,6 +116,7 @@ class StdTest(ModuleCase):
ret = self.client.cmd_full_return(
'minion',
'test.ping',
timeout=20,
)
self.assertIn('minion', ret)
self.assertEqual({'ret': True, 'success': True}, ret['minion'])