Check discovered endpoint matches without relying on dedupe ordering
This commit is contained in:
parent
5095044f17
commit
c475c2d77a
1 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue