mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #47068 from cachedout/catch_value_error_socket_test
Catch an operation on a closed socket in a test
This commit is contained in:
commit
03892eaf0b
1 changed files with 4 additions and 0 deletions
|
@ -47,6 +47,10 @@ class MinionTestCase(TestCase):
|
|||
try:
|
||||
event_publisher = event.AsyncEventPublisher(__opts__)
|
||||
result = True
|
||||
except ValueError:
|
||||
# There are rare cases where we operate a closed socket, especially in containers.
|
||||
# In this case, don't fail the test because we'll catch it down the road.
|
||||
result = True
|
||||
except SaltSystemExit:
|
||||
result = False
|
||||
self.assertTrue(result)
|
||||
|
|
Loading…
Add table
Reference in a new issue