Commit 10b9f94e authored by Luca Barbato's avatar Luca Barbato Committed by Luca Barbato

Speedup the flush tests

- Drop the spurious `#[test]` attribute (caused double runs)
- Use speed level 10
parent f121ce4b
......@@ -1105,9 +1105,8 @@ mod test {
#[interpolate_test(reorder_no_scene_change, false, true)]
#[interpolate_test(low_latency_scene_change_detection, true, false)]
#[interpolate_test(reorder_scene_change_detection, false, false)]
#[test]
fn flush(low_lantency: bool, no_scene_detection: bool) {
let mut ctx = setup_encoder::<u8>(64, 80, 5, 100, 8, ChromaSampling::Cs420, 15, 20, 0, low_lantency, no_scene_detection);
let mut ctx = setup_encoder::<u8>(64, 80, 10, 100, 8, ChromaSampling::Cs420, 15, 20, 0, low_lantency, no_scene_detection);
let limit = 40;
ctx.set_limit(limit);
......@@ -1149,9 +1148,8 @@ mod test {
#[interpolate_test(reorder_no_scene_change, false, true)]
#[interpolate_test(low_latency_scene_change_detection, true, false)]
#[interpolate_test(reorder_scene_change_detection, false, false)]
#[test]
fn flush_unlimited(low_lantency: bool, no_scene_detection: bool) {
let mut ctx = setup_encoder::<u8>(64, 80, 5, 100, 8, ChromaSampling::Cs420, 15, 20, 0, low_lantency, no_scene_detection);
let mut ctx = setup_encoder::<u8>(64, 80, 10, 100, 8, ChromaSampling::Cs420, 15, 20, 0, low_lantency, no_scene_detection);
let limit = 40;
for _ in 0..limit {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment