From 5c8550de7515f38687713da52a557957cc4f8f38 Mon Sep 17 00:00:00 2001 From: Jenkins Date: Sun, 14 May 2023 15:06:03 -0700 Subject: [PATCH] Unit test fixes --- tests/unit/transport/test_ipc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/transport/test_ipc.py b/tests/unit/transport/test_ipc.py index 4a159ea8efb..acc01cd705d 100644 --- a/tests/unit/transport/test_ipc.py +++ b/tests/unit/transport/test_ipc.py @@ -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