From 367311499696ca547b271f6bad989b376f8d7b83 Mon Sep 17 00:00:00 2001 From: Michael-F-Bryan Date: Wed, 27 Sep 2023 09:35:24 +0800 Subject: [PATCH] The ".git/" directory doesn't exist when testing MUSL --- tests/integration/cli/tests/run.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/cli/tests/run.rs b/tests/integration/cli/tests/run.rs index 130d5b9f474..63762b095dc 100644 --- a/tests/integration/cli/tests/run.rs +++ b/tests/integration/cli/tests/run.rs @@ -908,7 +908,7 @@ fn run_a_package_that_uses_an_atom_from_a_dependency() { fn project_root() -> &'static Path { Path::new(env!("CARGO_MANIFEST_DIR")) .ancestors() - .find(|path| path.join(".git").exists()) + .nth(3) .unwrap() }