hermes-agent/tests/plugins/memory
maxims-oss 18beb69b49 fix(memory): close embedded Hindsight async client cleanly
HindsightEmbedded.close() delegates to its sync client.close(). When Hermes
created/used that client on the shared async loop, closing it from the main
thread raises 'attached to a different loop' before aiohttp releases the
session — so the ClientSession / TCPConnector leak past provider teardown.

Close the embedded inner async client on the shared loop first via
_run_sync(inner_client.aclose()), then let the wrapper's sync close()
do its daemon/UI bookkeeping.

Salvage of #14605: test placement rebased — appended TestShutdown class
after TestSharedEventLoopLifecycle (which landed on main after the PR was
written). Original author attribution preserved.
2026-04-26 12:54:46 -07:00
..
__init__.py
test_hindsight_provider.py fix(memory): close embedded Hindsight async client cleanly 2026-04-26 12:54:46 -07:00
test_mem0_v2.py
test_openviking_provider.py feat: sort tool search results by score and add corresponding unit test 2026-04-14 10:49:35 -07:00
test_supermemory_provider.py