Fix absolute path error on macOS tests

This commit is contained in:
Federico Terzi 2021-03-14 10:30:53 +01:00
parent 2a2fbbd792
commit 0ae9b60175

View File

@ -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]