Test: soul_b refused-constituent test reads the typed refusal, not needs text

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-11 13:05:34 +02:00
commit 2b495e1f33

View file

@ -15411,12 +15411,9 @@ mod tests {
panic!("a coarse cell did not run the grouped lane") panic!("a coarse cell did not run the grouped lane")
}; };
assert_eq!(run.submissions.len(), 1); assert_eq!(run.submissions.len(), 1);
assert!( assert_eq!(
run.needs run.refused.iter().map(|entry| (entry.subject, entry.reason)).collect::<Vec<_>>(),
.iter() vec![(second, ConstituentRefusalReason::ScopeChanged)]
.any(|need| need.detail.contains("scope changed")),
"{:?}",
run.needs
); );
let after = digest_of(&mailbox.snapshot().await.unwrap(), second) let after = digest_of(&mailbox.snapshot().await.unwrap(), second)