From 0ae9b601759e51ad13f6ba907ce294226d0956cf Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sun, 14 Mar 2021 10:30:53 +0100 Subject: [PATCH] Fix absolute path error on macOS tests --- espanso-config/src/util.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/espanso-config/src/util.rs b/espanso-config/src/util.rs index f283da8..2c1bf80 100644 --- a/espanso-config/src/util.rs +++ b/espanso-config/src/util.rs @@ -45,7 +45,11 @@ pub mod tests { let config_dir = dir.path().join("config"); create_dir_all(&config_dir).unwrap(); - callback(&dir.path(), &match_dir, &config_dir); + callback( + &dunce::canonicalize(&dir.path()).unwrap(), + &dunce::canonicalize(match_dir).unwrap(), + &dunce::canonicalize(config_dir).unwrap(), + ); } #[test]