Skip to content

Commit 77a3770

Browse files
committed
Remove old commented out code from test
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent f410571 commit 77a3770

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

tests/test_client.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,6 @@
3333
)
3434
from frequenz.client.microgrid._connection import Connection
3535

36-
# @contextlib.asynccontextmanager
37-
# async def _gprc_server(
38-
# servicer: mock_api.MockMicrogridServicer | None = None,
39-
# ) -> AsyncIterator[tuple[mock_api.MockMicrogridServicer, ApiClient]]:
40-
# global _CURRENT_PORT # pylint: disable=global-statement
41-
# port = _CURRENT_PORT
42-
# _CURRENT_PORT += 1
43-
# if servicer is None:
44-
# servicer = mock_api.MockMicrogridServicer()
45-
# server = mock_api.MockGrpcServer(servicer, port=port)
46-
# client = ApiClient(
47-
# grpc.aio.insecure_channel(f"[::]:{port}"),
48-
# f"[::]:{port}",
49-
# retry_strategy=LinearBackoff(interval=0.0, jitter=0.05),
50-
# )
51-
# await server.start()
52-
# try:
53-
# yield servicer, client
54-
# finally:
55-
# assert await server.graceful_shutdown()
56-
5736

5837
class _TestClient(ApiClient):
5938
def __init__(self, *, retry_strategy: retry.Strategy | None = None) -> None:

0 commit comments

Comments
 (0)