From 41890e45b3fd6c13c1d9297e2b208e115282f38f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 31 Oct 2026 16:34:52 +0100 Subject: [PATCH] huginn-mind tests: the refused outcome is matched, not unwrapped Co-Authored-By: Claude Sonnet 5.5 --- crates/huginn-mind/src/query.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/huginn-mind/src/query.rs b/crates/huginn-mind/src/query.rs index 12996ce..0ba3370 100644 --- a/crates/huginn-mind/src/query.rs +++ b/crates/huginn-mind/src/query.rs @@ -1788,7 +1788,7 @@ mod tests { let fu2 = r(K::FollowUp, &id("follow_up", "FU-2")); assert!( - admit(&mut mind, vec![resolution(fu2, ResolutionOutcome::Answered { by: r(K::Ruling, &id("ruling", "R1")) })]).is_err(), + matches!(admit(&mut mind, vec![resolution(fu2, ResolutionOutcome::Answered { by: r(K::Ruling, &id("ruling", "R1")) })]), PipelineAdmissionOutcome::Refused(_)), "Answered stays a question's outcome" ); assert_eq!(open_follow_ups(&mind), vec![id("follow_up", "FU-2")]);