fix: remove importlib.reload(cfg) from eviction tests

This commit is contained in:
starship-s
2026-05-17 06:37:32 -06:00
parent a48cacec73
commit cdb979d2ca
@@ -257,8 +257,6 @@ def test_evict_session_agent_commits_before_dropping():
lifecycle.mark_turn_completed(sid, agent=agent)
import api.config as cfg
import importlib as _il
_il.reload(cfg)
with cfg.SESSION_AGENT_CACHE_LOCK:
cfg.SESSION_AGENT_CACHE.clear()
@@ -296,8 +294,6 @@ def test_evict_session_agent_waits_for_inflight_commit_before_closing_db():
lifecycle.mark_turn_completed(sid, agent=agent)
import api.config as cfg
import importlib as _il
_il.reload(cfg)
with cfg.SESSION_AGENT_CACHE_LOCK:
cfg.SESSION_AGENT_CACHE.clear()
cfg.SESSION_AGENT_CACHE[sid] = (agent, "sig")