Skip to content

Commit

Permalink
Fix lint errors using black
Browse files Browse the repository at this point in the history
  • Loading branch information
rhatgadkar-goog committed Nov 15, 2024
1 parent 54dd99c commit 25d6f50
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/unit/test_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ async def test_Connector_remove_cached_bad_instance(
instance_uri = "projects/test-project/locations/test-region/clusters/test-cluster/instances/bad-test-instance"
with Connector(credentials) as connector:
connector._keys = asyncio.wrap_future(
asyncio.run_coroutine_threadsafe(generate_keys(), asyncio.get_running_loop()),
asyncio.run_coroutine_threadsafe(
generate_keys(), asyncio.get_running_loop()
),
loop=asyncio.get_running_loop(),
)
with pytest.raises(ClientResponseError):
Expand All @@ -240,7 +242,9 @@ async def test_Connector_remove_cached_no_ip_type(credentials: FakeCredentials)
with Connector(credentials=credentials) as connector:
connector._client = fake_client
connector._keys = asyncio.wrap_future(
asyncio.run_coroutine_threadsafe(generate_keys(), asyncio.get_running_loop()),
asyncio.run_coroutine_threadsafe(
generate_keys(), asyncio.get_running_loop()
),
loop=asyncio.get_running_loop(),
)
cache = RefreshAheadCache(instance_uri, fake_client, connector._keys)
Expand Down

0 comments on commit 25d6f50

Please sign in to comment.