agent_ports: use MANAGER_NAME constant in filter test so assertion isn't trivial (argus on #748)
This commit is contained in:
parent
e197efd3a6
commit
e13c6f514c
1 changed files with 5 additions and 1 deletions
|
|
@ -110,7 +110,11 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn build_map_filters_manager() {
|
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()
|
.iter()
|
||||||
.map(|s| (*s).to_owned())
|
.map(|s| (*s).to_owned())
|
||||||
.collect();
|
.collect();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue