mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
AsyncTestCase is required for AsyncEventPublisher
Other tests that use AsyncTestCase's io_loop will break if AsyncTestCase is not subclassed when a test instantiates AsyncEventPublisher.
This commit is contained in:
parent
03892eaf0b
commit
3d85e30ce5
1 changed files with 2 additions and 1 deletions
|
@ -18,12 +18,13 @@ from salt.utils import event
|
|||
from salt.exceptions import SaltSystemExit
|
||||
import salt.syspaths
|
||||
import tornado
|
||||
import tornado.testing
|
||||
|
||||
__opts__ = {}
|
||||
|
||||
|
||||
@skipIf(NO_MOCK, NO_MOCK_REASON)
|
||||
class MinionTestCase(TestCase):
|
||||
class MinionTestCase(TestCase, tornado.testing.AsyncTestCase):
|
||||
def test_invalid_master_address(self):
|
||||
with patch.dict(__opts__, {'ipv6': False, 'master': float('127.0'), 'master_port': '4555', 'retry_dns': False}):
|
||||
self.assertRaises(SaltSystemExit, minion.resolve_dns, __opts__)
|
||||
|
|
Loading…
Add table
Reference in a new issue