From 890df5021bf4ed20009b12286d04b3e4fb9ec925 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Fri, 26 Jan 2024 05:54:45 +0000 Subject: [PATCH] Exit the process cleanly Signed-off-by: Pedro Algarvio --- tests/support/pytest/transport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/support/pytest/transport.py b/tests/support/pytest/transport.py index e63a330cf7c..bfb69baa3ad 100644 --- a/tests/support/pytest/transport.py +++ b/tests/support/pytest/transport.py @@ -281,13 +281,14 @@ class PubServerChannelProcess(salt.utils.process.SignalHandlingProcess): ) def run(self): - ioloop = tornado.ioloop.IOLoop() try: while True: try: payload = self.queue.get(False) except queue.Empty: + if self._closing is True: + break time.sleep(0.03) continue if payload is None: