We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f20f32 commit 842d01cCopy full SHA for 842d01c
1 file changed
tests/catalog/test_hive.py
@@ -226,21 +226,24 @@ def run(self) -> None:
226
client.write(self._response)
227
client.flush()
228
except Exception:
229
- pass
+ break
230
231
@property
232
def port(self) -> int | None:
233
self._port_bound.wait()
234
return self._port
235
236
def close(self) -> None:
237
- # Close all client connections first
+ try:
238
+ self._socket.close()
239
+ except Exception:
240
+ pass
241
+ self.join(timeout=5)
242
for client in self._clients:
243
try:
244
client.close()
245
246
pass
- self._socket.close()
247
248
249
@pytest.fixture(scope="session")
0 commit comments