Unit test fixes

This commit is contained in:
Jenkins 2023-05-14 15:06:03 -07:00 committed by Gareth J. Greenaway
parent 4c4d017ddb
commit 5c8550de75

View file

@ -63,12 +63,16 @@ class IPCMessagePubSubCase(salt.ext.tornado.testing.AsyncTestCase):
super().tearDown()
try:
self.pub_channel.close()
except RuntimeError as exc:
pass
except OSError as exc:
if exc.errno != errno.EBADF:
# If its not a bad file descriptor error, raise
raise
try:
self.sub_channel.close()
except RuntimeError as exc:
pass
except OSError as exc:
if exc.errno != errno.EBADF:
# If its not a bad file descriptor error, raise