Skip to content

Commit 3362a62

Browse files
igorcodingCopilot
andauthored
Update tests/conftest.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6e0cf30 commit 3362a62

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎tests/conftest.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,10 @@ async def _cleanup_connection(connection: asynctnt.Connection) -> None:
182182
if connection.is_connected:
183183
try:
184184
await connection.call("truncate", timeout=5)
185-
except Exception:
186-
pass
185+
except Exception as exc:
186+
logging.getLogger(__name__).warning(
187+
"Failed to truncate connection during cleanup: %s", exc
188+
)
187189

188190

189191
@pytest.fixture

0 commit comments

Comments
 (0)