mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix test_client.py test_pub_win32 unit test
This commit is contained in:
parent
156e75f345
commit
56141835a6
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue