mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix windows tests - increase timeout
This commit is contained in:
parent
c70772c5a0
commit
795a7f67da
2 changed files with 10 additions and 1 deletions
|
@ -8,12 +8,16 @@ from tests.support.case import ModuleCase
|
|||
|
||||
# Import 3rd-party libs
|
||||
from salt.ext import six
|
||||
import salt.utils.platform
|
||||
|
||||
|
||||
class StdTest(ModuleCase):
|
||||
'''
|
||||
Test standard client calls
|
||||
'''
|
||||
def setUp(self):
|
||||
self.TIMEOUT = 600 if salt.utils.platform.is_windows() else 10
|
||||
|
||||
def test_cli(self):
|
||||
'''
|
||||
Test cli function
|
||||
|
@ -84,6 +88,7 @@ class StdTest(ModuleCase):
|
|||
'minion',
|
||||
'test.arg_type',
|
||||
['a', 1],
|
||||
timeout=self.TIMEOUT,
|
||||
kwarg={'outer': {'a': terrible_yaml_string},
|
||||
'inner': 'value'}
|
||||
)
|
||||
|
|
|
@ -9,12 +9,15 @@ from tests.support.case import ModuleCase
|
|||
|
||||
# Import salt libs
|
||||
import salt.utils.files
|
||||
import salt.utils.platform
|
||||
|
||||
|
||||
class StdTest(ModuleCase):
|
||||
'''
|
||||
Test standard client calls
|
||||
'''
|
||||
def setUp(self):
|
||||
self.TIMEOUT = 600 if salt.utils.platform.is_windows() else 10
|
||||
|
||||
def test_cli(self):
|
||||
'''
|
||||
|
@ -159,7 +162,8 @@ class StdTest(ModuleCase):
|
|||
ret = self.client.cmd(
|
||||
'minion,ghostminion',
|
||||
'test.ping',
|
||||
tgt_type='list'
|
||||
tgt_type='list',
|
||||
timeout=self.TIMEOUT
|
||||
)
|
||||
self.assertIn('minion', ret)
|
||||
self.assertIn('ghostminion', ret)
|
||||
|
|
Loading…
Add table
Reference in a new issue