From e37d20bd6fe1b4333ea43ceac86e21328a13fb7c Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Wed, 8 Apr 2026 07:55:32 -0400 Subject: [PATCH] test fix --- lib/crates/fabro-test/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/crates/fabro-test/src/lib.rs b/lib/crates/fabro-test/src/lib.rs index b034f11e1..5107dfdf9 100644 --- a/lib/crates/fabro-test/src/lib.rs +++ b/lib/crates/fabro-test/src/lib.rs @@ -1737,7 +1737,10 @@ mod tests { fn run_and_create_commands_include_test_labels() { let _lock = env_lock().lock().expect("env lock poisoned"); let _guard = EnvGuard::set("NEXTEST_RUN_ID", Some("run-cmd-labels")); - let context = TestContext::new(PathBuf::from("/tmp/fabro")); + let missing_bin_root = tempfile::tempdir().expect("failed to create temp dir"); + // Keep the binary path missing so this unit test never bootstraps a + // shared server based on ambient filesystem state at /tmp/fabro. + let context = TestContext::new(missing_bin_root.path().join("fabro")); let run_args = context .run_cmd()