Skip to content

Commit cd8708d

Browse files
committed
fix: passing protocol everywhere
1 parent b0fc8ad commit cd8708d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/google/adk/cli/cli_tools_click.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,9 @@ def cli_api_server(
855855
web=False,
856856
trace_to_cloud=trace_to_cloud,
857857
a2a=a2a,
858+
host=host,
859+
port=port,
860+
protocol=protocol,
858861
reload_agents=reload_agents,
859862
),
860863
host=host,

tests/unittests/cli/test_fast_api.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,9 @@ def test_app(
433433
memory_service_uri="",
434434
allow_origins=["*"],
435435
a2a=False, # Disable A2A for most tests
436-
base_url="http://127.0.0.1:8000",
436+
host="127.0.0.1",
437+
port=8000,
438+
protocol="http",
437439
)
438440

439441
# Create a TestClient that doesn't start a real server
@@ -610,7 +612,9 @@ def test_app_with_a2a(
610612
memory_service_uri="",
611613
allow_origins=["*"],
612614
a2a=True,
613-
base_url="http://127.0.0.1:8000",
615+
host="127.0.0.1",
616+
port=8000,
617+
protocol="http",
614618
)
615619

616620
client = TestClient(app)

0 commit comments

Comments
 (0)