Skip to content

Commit 9a192a4

Browse files
committed
chore: update closed conn tests
1 parent b1e046b commit 9a192a4

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
@@ -467,7 +467,6 @@ def close(self) -> None:
467467
self._loop.call_soon_threadsafe(self._loop.stop)
468468
# wait for thread to finish closing (i.e. loop to stop)
469469
self._thread.join()
470-
self._closed = True
471470

472471
async def close_async(self) -> None:
473472
"""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)