test(lesavka): mirror missing UVC payload cap in coverage

This commit is contained in:
Brad Stein 2026-05-18 20:12:07 -03:00
parent a7f73a82cc
commit 221240229c

View File

@ -9,7 +9,9 @@ fn compute_payload_cap(bulk: bool) -> Option<PayloadCap> {
}); });
} }
let mut pct = env_u32("LESAVKA_UVC_LIMIT_PCT", 95); let Some(mut pct) = env_u32_opt("LESAVKA_UVC_LIMIT_PCT") else {
return None;
};
if pct == 0 { if pct == 0 {
pct = 1; pct = 1;
} else if pct > 100 { } else if pct > 100 {