Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle: Disable canonicalize_home tests on macos
Sebastian Martinez committed 2 years ago
commit 7368e389427bc49e29e0554405c17f5c11c3c8de
parent 1241bbb4e89bf3d559c139aff87f8bc981bc055b
1 file changed +2 -6
modified radicle/src/profile.rs
@@ -364,9 +364,9 @@ impl Home {
}

#[cfg(test)]
+
#[cfg(not(target_os = "macos"))]
mod test {
    use std::fs;
-
    use std::path::Path;

    use super::Home;

@@ -382,7 +382,7 @@ mod test {
        fs::create_dir_all(path.clone()).unwrap();

        let last = tmp.path().components().last().unwrap();
-
        let mut home = Home::new(
+
        let home = Home::new(
            tmp.path()
                .join("..")
                .join(last)
@@ -390,10 +390,6 @@ mod test {
                .join("Radicle"),
        )
        .unwrap();
-
        if cfg!(target_os = "macos") {
-
            home.path =
-
                Path::new("/").join(home.path.strip_prefix("/private").unwrap_or(&home.path))
-
        };

        assert_eq!(home.path, path);
    }