Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

test(fusion): the sweep-ticker double carries the depth-6.1 store

beenuarc394b9b5bb37
diff --git a/services/fusion/tests/test_sessions.py b/services/fusion/tests/test_sessions.py
index 5267512bb..ae95a9266 100644
--- a/services/fusion/tests/test_sessions.py
+++ b/services/fusion/tests/test_sessions.py
@@ -337,6 +337,10 @@ async def test_the_idle_sweep_runs_from_the_worker_rather_than_nowhere():
worker = consumer_mod.FusionWorker.__new__(consumer_mod.FusionWorker)
worker._running = True
worker._lake = None
+ # Depth 6.1 gave the ticker a second optional store; the double carries
+ # it the same way the constructor does, as None, so this test keeps
+ # exercising the real loop rather than an AttributeError in it.
+ worker._ai_assets = None
worker._sessions = SweepOnlyStore()
# The real period is a quarter of the idle window (~7 minutes). Shortened