test: pin that an mcp summary is rejected against a name that is not

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
hugocasa
2026-09-14 10:43:52 +02:00
co-authored by Claude Opus 5
parent 39bee4c770
commit f3e60f994d
+6 -3
View File
@@ -2008,9 +2008,12 @@ mod tests {
["github"]
);
assert!(unmatched_enabled_tools_message(&named_server, &["u/test/gh"]).is_none());
assert!(narrow_roster(roster(), Some(&["github".to_string()]))
.iter()
.all(|t| !matches!(t.value, ToolValue::Mcp(_))));
// Alongside a name that does match, so the summary being rejected is what empties it.
let summary_and_tool = ["get_user".to_string(), "github".to_string()];
assert_eq!(
names(&narrow_roster(roster(), Some(&summary_and_tool))),
["get_user"]
);
assert!(narrow_roster(roster(), Some(&["u/test/other".to_string()])).is_empty());
}