We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1e046b commit 9a192a4Copy full SHA for 9a192a4
2 files changed
google/cloud/sql/connector/connector.py
@@ -467,7 +467,6 @@ def close(self) -> None:
467
self._loop.call_soon_threadsafe(self._loop.stop)
468
# wait for thread to finish closing (i.e. loop to stop)
469
self._thread.join()
470
- self._closed = True
471
472
async def close_async(self) -> None:
473
"""Helper function to cancel the cache's tasks
tests/unit/test_connector.py
@@ -501,7 +501,7 @@ def test_connect_closed_connector(
501
with Connector(credentials=fake_credentials) as connector:
502
connector._client = fake_client
503
connector.close()
504
- time.sleep(0.1)
+ time.sleep(3.1)
505
with pytest.raises(RuntimeError) as exc_info:
506
connector.connect(
507
"test-project:test-region:test-instance",
0 commit comments