mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixing a few things in the new test.
This commit is contained in:
parent
36b7253418
commit
30c5855d20
1 changed files with 2 additions and 2 deletions
|
@ -603,7 +603,7 @@ class OrchEventTest(ShellCase):
|
|||
__reload_config=True).get('jid')
|
||||
|
||||
if jid is None:
|
||||
raise Exception('jid missing from run_run_plus output')
|
||||
raise salt.exceptions.SaltInvocationError('jid missing from run_run_plus output')
|
||||
|
||||
signal.signal(signal.SIGALRM, self.alarm_handler)
|
||||
signal.alarm(self.timeout)
|
||||
|
@ -613,7 +613,7 @@ class OrchEventTest(ShellCase):
|
|||
event = listener.get_event(full=True)
|
||||
if event is None:
|
||||
continue
|
||||
if event['tag'] == 'salt/run/{0}/ret'.format(jid):
|
||||
if event.get('tag', '') == 'salt/run/{0}/ret'.format(jid):
|
||||
received = True
|
||||
# Don't wrap this in a try/except. We want to know if the
|
||||
# data structure is different from what we expect!
|
||||
|
|
Loading…
Add table
Reference in a new issue