Skip to content

Commit

Permalink
test: avoid flake if connections were already open at start (googleap…
Browse files Browse the repository at this point in the history
  • Loading branch information
tswast authored and abdelmegahedgoogle committed Apr 17, 2023
1 parent dba6849 commit 9b88808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/system/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1725,7 +1725,7 @@ def test_dbapi_connection_does_not_leak_sockets(self):

connection.close()
conn_count_end = len(current_process.connections())
self.assertEqual(conn_count_end, conn_count_start)
self.assertLessEqual(conn_count_end, conn_count_start)

def _load_table_for_dml(self, rows, dataset_id, table_id):
from google.cloud._testing import _NamedTemporaryFile
Expand Down

0 comments on commit 9b88808

Please sign in to comment.