mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Add some timeouts
This commit is contained in:
parent
01708258ba
commit
6948274c25
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user