Fix windows tests

This commit is contained in:
Daniel A. Wozniak 2019-04-19 15:00:36 +00:00 committed by Pedro Algarvio
parent 82e9ac5b8f
commit 8694db10d7
No known key found for this signature in database
GPG Key ID: BB36BF6584A298FF

View File

@ -655,8 +655,12 @@ def _fetch_events(q):
queue_item.task_done()
atexit.register(_clean_queue)
opts = RUNTIME_VARS.RUNTIME_CONFIGS['minion']
event = salt.utils.event.get_event('minion', sock_dir=opts['sock_dir'], opts=opts)
a_config = AdaptedConfigurationTestCaseMixin()
event = salt.utils.event.get_event(
'minion',
sock_dir=a_config.get_config('minion')['sock_dir'],
opts=a_config.get_config('minion'),
)
# Wait for event bus to be connected
while not event.connect_pull(30):