diff --git a/tests/fuzz/src/lib.rs b/tests/fuzz/src/lib.rs index 34d7261..27ec07d 100644 --- a/tests/fuzz/src/lib.rs +++ b/tests/fuzz/src/lib.rs @@ -105,7 +105,8 @@ fn compile_checked(site: &str, hosts: &[(String, String)]) { fn creds_dir() -> &'static PathBuf { static DIR: OnceLock = OnceLock::new(); DIR.get_or_init(|| { - let d = std::env::temp_dir().join(format!("ianitor-fuzz-creds-{}", std::process::id())); + // One fixed folder, rewritten by every run: nothing piles up in the temp folder. + let d = std::env::temp_dir().join("ianitor-fuzz-creds"); std::fs::create_dir_all(&d).unwrap(); std::fs::write(d.join("api_key"), b"fuzz-secret-value\n").unwrap(); std::fs::write(d.join("ui-proof"), b"fuzz-proof-value\n").unwrap();