From 4c92bc1f43ca2943d4c7f9d96c0806f7a217ce03 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 8 Apr 2026 09:52:03 -0500 Subject: [PATCH] [fix]: broken loading test After making some optimizations to text_svg, some were smaller than the anticipated amount --- src/core/file.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/file.rs b/src/core/file.rs index c0feefe..c2a59e0 100644 --- a/src/core/file.rs +++ b/src/core/file.rs @@ -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 {