[fix]: broken loading test

After making some optimizations to text_svg, some were smaller than
the anticipated amount
This commit is contained in:
Chris Cochrun 2026-04-08 09:52:03 -05:00
parent cf2866e019
commit 4c92bc1f43

View file

@ -415,7 +415,9 @@ mod test {
find_svgs(&items)?;
Ok(())
}
Err(e) => Err(e.to_string()),
Err(e) => {
Err(format!("Error in the loading process: {e}"))
}
}
}
@ -433,7 +435,7 @@ mod test {
text_svg.path.as_ref().map_or(Err(String::from("There is no path in this song's TextSvg")), |path| {
if path.exists() {
let mut path = path.clone();
if path.metadata().unwrap().len() < 20000 {
if path.metadata().unwrap().len() < 15000 {
return Err(String::from("SVG text is too small, maybe the svg didn't generate properly"))
}
if path.pop() && path == cache_dir {