Skip to content

Commit f53d505

Browse files
test: fix hwaccel_from_config test for Auto variant
Update test to expect HwAccel::Auto for "auto" config value instead of checking for specific backends, matching the refactored behavior.
1 parent 047e25d commit f53d505

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎wallr-core/src/video/decoder.rs‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -647,9 +647,7 @@ mod tests {
647647
assert_eq!(HwAccel::from_config("vaapi"), HwAccel::Vaapi);
648648
assert_eq!(HwAccel::from_config("nvdec"), HwAccel::Nvdec);
649649
assert_eq!(HwAccel::from_config("software"), HwAccel::Software);
650-
assert!(matches!(
651-
HwAccel::from_config("auto"),
652-
HwAccel::Vaapi | HwAccel::Nvdec | HwAccel::VideoToolbox | HwAccel::Software
653-
));
650+
assert_eq!(HwAccel::from_config("auto"), HwAccel::Auto);
651+
assert_eq!(HwAccel::from_config("unknown"), HwAccel::Auto);
654652
}
655653
}

0 commit comments

Comments
 (0)