agent_ports: use MANAGER_NAME constant in filter test so assertion isn't trivial (argus on #748)

This commit is contained in:
damocles 2026-05-31 13:06:03 +02:00 committed by Mara
commit e13c6f514c

View file

@ -110,7 +110,11 @@ mod tests {
#[test]
fn build_map_filters_manager() {
let names: Vec<String> = ["iris", "hm1nd", "argus"]
// Use MANAGER_NAME in the input so the assert below actually
// exercises the filter path — a literal `"hm1nd"` would pass
// trivially if the constant ever changed and the filter
// silently became a no-op (argus on PR #748).
let names: Vec<String> = ["iris", MANAGER_NAME, "argus"]
.iter()
.map(|s| (*s).to_owned())
.collect();