mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Workaround for tornado test startup error
This commit is contained in:
parent
88bcfa2c0a
commit
a6a24c2b3b
1 changed files with 8 additions and 2 deletions
|
@ -87,12 +87,18 @@ class SaltnadoTestCase(integration.ModuleCase, AsyncHTTPTestCase):
|
|||
return self.auth.mk_token(self.auth_creds_dict)
|
||||
|
||||
def setUp(self):
|
||||
super(SaltnadoTestCase, self).setUp()
|
||||
try:
|
||||
super(SaltnadoTestCase, self).setUp()
|
||||
except NotImplementedError:
|
||||
pass
|
||||
self.async_timeout_prev = os.environ.pop('ASYNC_TEST_TIMEOUT', None)
|
||||
os.environ['ASYNC_TEST_TIMEOUT'] = str(30)
|
||||
|
||||
def tearDown(self):
|
||||
super(SaltnadoTestCase, self).tearDown()
|
||||
try:
|
||||
super(SaltnadoTestCase, self).tearDown()
|
||||
except AttributeError:
|
||||
pass
|
||||
if self.async_timeout_prev is None:
|
||||
os.environ.pop('ASYNC_TEST_TIMEOUT', None)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue