mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
check timeout when queue empty
This commit is contained in:
parent
7c0a9af3d0
commit
517650f87b
1 changed files with 2 additions and 0 deletions
|
@ -712,6 +712,8 @@ class SaltMinionEventAssertsMixin(object):
|
|||
event = self.q.get(False)
|
||||
except Empty:
|
||||
time.sleep(sleep_time)
|
||||
if start - time.time() >= timeout:
|
||||
break
|
||||
continue
|
||||
if isinstance(event, dict):
|
||||
event.pop('_stamp')
|
||||
|
|
Loading…
Add table
Reference in a new issue