Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/google-cloud-bigquery/tests/system/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2182,6 +2182,11 @@ def test_dbapi_dry_run_query(self):

def test_dbapi_connection_does_not_leak_sockets(self):
pytest.importorskip("google.cloud.bigquery_storage")

# Ensure any garbage collection from previous tests is done to avoid false positives.
import gc
gc.collect()

current_process = psutil.Process()
conn_start = current_process.net_connections()
conn_count_start = len(conn_start)
Expand Down
Loading