From e13c6f514c3186daecd9ca5cf9a03011cb7f928e Mon Sep 17 00:00:00 2001 From: damocles Date: Sun, 31 May 2026 13:06:03 +0200 Subject: [PATCH] agent_ports: use MANAGER_NAME constant in filter test so assertion isn't trivial (argus on #748) --- hive-c0re/src/agent_ports.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hive-c0re/src/agent_ports.rs b/hive-c0re/src/agent_ports.rs index ae9880f8..6b38049a 100644 --- a/hive-c0re/src/agent_ports.rs +++ b/hive-c0re/src/agent_ports.rs @@ -110,7 +110,11 @@ mod tests { #[test] fn build_map_filters_manager() { - let names: Vec = ["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 = ["iris", MANAGER_NAME, "argus"] .iter() .map(|s| (*s).to_owned()) .collect();