Check discovered endpoint matches without relying on dedupe ordering

This commit is contained in:
Meta Vens 2026-12-03 22:45:08 +01:00
commit c475c2d77a

View file

@ -9196,10 +9196,9 @@ Device 00:07:04:A8:00:D0 (public)
assert!(matches assert!(matches
.iter() .iter()
.all(|endpoint_match| endpoint_match.address == "10.77.0.3:17888")); .all(|endpoint_match| endpoint_match.address == "10.77.0.3:17888"));
assert_eq!( assert!(matches.iter().any(|endpoint_match| {
matches[0].stream_id.as_deref(), endpoint_match.stream_id.as_deref() == Some("muninn:nightwing:hid-controller-state")
Some("muninn:nightwing:hid-controller-state") }));
);
let _ = fs::remove_file(store_path); let _ = fs::remove_file(store_path);
} }
} }