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()