From c475c2d77a04b4c2f9a6eb274de9dcf17bc652ce Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 3 Dec 2026 22:45:08 +0100 Subject: [PATCH] Check discovered endpoint matches without relying on dedupe ordering --- crates/muninn-daemon/src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/muninn-daemon/src/main.rs b/crates/muninn-daemon/src/main.rs index f25b756..78accbb 100644 --- a/crates/muninn-daemon/src/main.rs +++ b/crates/muninn-daemon/src/main.rs @@ -9196,10 +9196,9 @@ Device 00:07:04:A8:00:D0 (public) assert!(matches .iter() .all(|endpoint_match| endpoint_match.address == "10.77.0.3:17888")); - assert_eq!( - matches[0].stream_id.as_deref(), - Some("muninn:nightwing:hid-controller-state") - ); + assert!(matches.iter().any(|endpoint_match| { + endpoint_match.stream_id.as_deref() == Some("muninn:nightwing:hid-controller-state") + })); let _ = fs::remove_file(store_path); } }