@@ -96,7 +96,6 @@ async def test__get_metadata_error(
9696 await client ._get_metadata (
9797 "my-project" , "my-region" , "my-cluster" , "my-instance"
9898 )
99- await client .close ()
10099
101100
102101@pytest .mark .asyncio
@@ -131,7 +130,6 @@ async def test__get_client_certificate_error(
131130 await client ._get_client_certificate (
132131 "my-project" , "my-region" , "my-cluster" , ""
133132 )
134- await client .close ()
135133
136134
137135@pytest .mark .asyncio
@@ -146,8 +144,6 @@ async def test_AlloyDBClient_init_(credentials: FakeCredentials) -> None:
146144 # verify proper headers are set
147145 assert client ._user_agent .startswith (f"alloydb-python-connector/{ version } " )
148146 assert client ._client ._client ._client_options .quota_project_id == "my-quota-project"
149- # close client
150- await client .close ()
151147
152148
153149@pytest .mark .asyncio
@@ -166,7 +162,6 @@ async def test_AlloyDBClient_init_custom_user_agent(
166162 assert client ._user_agent .startswith (
167163 f"alloydb-python-connector/{ version } custom-agent/v1.0.0 other-agent/v2.0.0"
168164 )
169- await client .close ()
170165
171166
172167@pytest .mark .parametrize (
@@ -190,8 +185,6 @@ async def test_AlloyDBClient_user_agent(
190185 assert client ._user_agent .startswith (
191186 f"alloydb-python-connector/{ version } +{ driver } "
192187 )
193- # close client
194- await client .close ()
195188
196189
197190@pytest .mark .parametrize (
@@ -210,5 +203,3 @@ async def test_AlloyDBClient_use_metadata(
210203 "www.test-endpoint.com" , "my-quota-project" , credentials , driver = driver
211204 )
212205 assert client ._use_metadata == expected
213- # close client
214- await client .close ()
0 commit comments