refactor(agent/agent_init): repoint micro-compaction source pin to table entry
This commit is contained in:
@@ -521,7 +521,8 @@ def test_agent_init_suppresses_micro_compaction_under_checkpoint_gate():
|
||||
source = inspect.getsource(agent_init)
|
||||
# The suppression must happen before the compressor attribute assignment.
|
||||
suppress_idx = source.find("if cs.checkpoint_required and cs.micro_compact:")
|
||||
assign_idx = source.find("_cc._micro_compact_enabled = cs.micro_compact")
|
||||
# The compressor attribute assignment is table-driven; pin the table entry.
|
||||
assign_idx = source.find('("_micro_compact_enabled", cs.micro_compact)')
|
||||
assert suppress_idx != -1, (
|
||||
"init_agent must suppress micro-compaction when checkpoint_required"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user