Skip to content

Commit 741065f

Browse files
committed
chore: update closed conn tests
1 parent c6f0473 commit 741065f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

google/cloud/sql/connector/connector.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ def close(self) -> None:
468468
self._loop.call_soon_threadsafe(self._loop.stop)
469469
# wait for thread to finish closing (i.e. loop to stop)
470470
self._thread.join()
471-
self._closed = True
472471

473472
async def close_async(self) -> None:
474473
"""Helper function to cancel the cache's tasks

tests/unit/test_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def test_connect_closed_connector(
501501
with Connector(credentials=fake_credentials) as connector:
502502
connector._client = fake_client
503503
connector.close()
504-
time.sleep(0.1)
504+
time.sleep(3.1)
505505
with pytest.raises(RuntimeError) as exc_info:
506506
connector.connect(
507507
"test-project:test-region:test-instance",

0 commit comments

Comments
 (0)