Merge pull request #47108 from dwoz/async_test_fix

Fix unit.utils.test_event.TestAsyncEventPublisher.test_event_subscription
This commit is contained in:
Daniel Wozniak 2018-04-16 17:25:06 -07:00 committed by GitHub
commit 6a4c0b8a1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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__)