Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
software-dov committed Dec 29, 2021
1 parent f4942e9 commit 54e311c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/system/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,14 @@ def construct_client(
else:
transport_cls = client_class.get_transport_class(transport_name)
if transport_name in ["grpc", "grpc_asyncio"]:
transport = transport_cls(channel=channel_creator("localhost:7469"))
transport = transport_cls(
channel=channel_creator("localhost:7469"),
)
elif transport_name == "rest":
# The custom host explicitly bypasses https.
transport = transport_cls(host="http://localhost:7469")
transport = transport_cls(
host="http://localhost:7469",
)
else:
raise RuntimeError(f"Unexpected transport type: {transport_name}")

Expand Down

0 comments on commit 54e311c

Please sign in to comment.