mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-19 15:18:03 +00:00
fix(feishu): set client_max_size on the webhook Application
Follow-up to the salvaged #54938: the bounded reader gives a proper 413 + anomaly telemetry for oversized chunked bodies; client_max_size makes aiohttp enforce the same 1 MiB cap on every other read path (#58536/#58902/#59180 pattern). Test fixture's fake Application now accepts kwargs.
This commit is contained in:
parent
a26680eb2d
commit
2bcb893d87
2 changed files with 5 additions and 2 deletions
|
|
@ -190,7 +190,7 @@ class TestFeishuAdapterMessaging(unittest.TestCase):
|
|||
runner = AsyncMock()
|
||||
site = AsyncMock()
|
||||
web_module = SimpleNamespace(
|
||||
Application=lambda: SimpleNamespace(router=SimpleNamespace(add_post=lambda *_args, **_kwargs: None)),
|
||||
Application=lambda **_kwargs: SimpleNamespace(router=SimpleNamespace(add_post=lambda *_args, **_kwargs: None)),
|
||||
AppRunner=lambda _app: runner,
|
||||
TCPSite=lambda _runner, host, port: SimpleNamespace(start=site.start, host=host, port=port),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue