Fix test_client.py test_pub_win32 unit test

This commit is contained in:
Daniel A. Wozniak 2023-07-21 23:15:54 -07:00 committed by Gareth J. Greenaway
parent 156e75f345
commit 56141835a6

View file

@ -1084,6 +1084,7 @@ class RequestClient(salt.transport.base.RequestClient):
async def connect(self):
if self.socket is None:
self._closing = False
# wire up sockets
self._init_socket()
@ -1148,6 +1149,7 @@ class RequestClient(salt.transport.base.RequestClient):
return await asyncio.wait_for(self._send_recv(load), timeout=timeout)
except (asyncio.exceptions.TimeoutError, TimeoutError):
self.close()
raise SaltReqTimeoutError("Request client send timedout")
except Exception:
self.close()
raise