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:
Родитель
4f31e7539f
Коммит
108cd5cafd
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче