huginn-mind: iterate the envelope slice in the read-back census

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-01 12:12:36 +02:00
commit 0f491b00ef

View file

@ -797,6 +797,7 @@ mod tests {
// The census is taken apart from the loop that checks each document.
let pipeline_envelopes = mind
.envelopes()
.iter()
.filter(|envelope| PipelineKind::ALL.iter().any(|kind| kind.type_id() == envelope.r#type))
.count();
assert!(pipeline_envelopes > 0, "the snapshot held no pipeline document");