mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
check timeout when queue empty
This commit is contained in:
parent
7c0a9af3d0
commit
517650f87b
@ -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…
Reference in New Issue
Block a user