Don't assert in test_aggregate_get_sub_devices_for_a_unknown_device

Since it is expected to panic without the assert, the assert simply adds
a way to mask a regression, since it can also cause a panic.
This commit is contained in:
Andreas Pehrson 2024-05-30 22:16:57 +02:00 коммит произвёл Andreas Pehrson
Родитель 4f31e7539f
Коммит 108cd5cafd
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -72,8 +72,7 @@ fn test_aggregate_get_sub_devices() {
#[should_panic]
fn test_aggregate_get_sub_devices_for_a_unknown_device() {
run_serially_forward_panics(|| {
let devices = AggregateDevice::get_sub_devices(kAudioObjectUnknown).unwrap();
assert!(devices.is_empty());
AggregateDevice::get_sub_devices(kAudioObjectUnknown);
});
}