From 04932b2c77fa9e766af715f9fe044a9ac0702bbd Mon Sep 17 00:00:00 2001 From: Nick Pegg Date: Sat, 17 May 2025 18:41:21 -0700 Subject: [PATCH] canonicalize() to fix race condition with cwd --- src/test_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test_util.rs b/src/test_util.rs index 977ddf1..46a3d53 100644 --- a/src/test_util.rs +++ b/src/test_util.rs @@ -10,7 +10,7 @@ pub fn init() { /// cleans up the directory on drop, so make sure to persist the variable until you're done with it pub fn make_test_album() -> Temp { let tmpdir = Temp::new_dir().unwrap(); - let source_path = Path::new("resources/test_album"); + let source_path = Path::new("resources/test_album").canonicalize().unwrap(); log::info!("Creating test album in {}", tmpdir.display()); make_skeleton(&tmpdir.to_path_buf()).unwrap();