mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix missing error handling.
This commit is contained in:
parent
10b9aeda05
commit
4708fe8900
1 changed files with 2 additions and 0 deletions
|
@ -312,6 +312,8 @@ class PubServerChannelProcess(salt.utils.process.SignalHandlingProcess):
|
|||
if self.collector.stop_running.wait(1) is True:
|
||||
break
|
||||
attempts -= 1
|
||||
else:
|
||||
pytest.fail("Failed to confirm the collector has stopped")
|
||||
# Now trigger the collector to also exit
|
||||
self.collector.__exit__(*args)
|
||||
# We can safely wait here without a timeout because the Collector instance has a
|
||||
|
|
Loading…
Add table
Reference in a new issue