mirror of
https://github.com/Dasemu/Grove.git
synced 2026-11-26 15:26:09 +00:00
test: clean temp dirs and spawned daemons in all crates
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
00226b4178
commit
dd4cea48d0
12 files changed
+92
-65
No files matched your search
@@ -13,6 +13,9 @@ use std::path::{Path, PathBuf};
|
||||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
|
||||
mod secrets;
|
||||
#[cfg(test)]
|
||||
#[path = "../../../test-support/tmp.rs"]
|
||||
mod test_tmp;
|
||||
mod workflow;
|
||||
|
||||
#[derive(Parser)]
|
||||
|
||||
@@ -763,7 +763,8 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn local_repos_match_by_name_or_origin_ignoring_case() {
|
||||
let d = std::env::temp_dir().join(format!("grove-local-{}", std::process::id()));
|
||||
let _tmp = crate::test_tmp::TempDir::new("grove-local");
|
||||
let d = _tmp.path().to_path_buf();
|
||||
let _ = fs::remove_dir_all(&d);
|
||||
// `synapse` (lowercase dir) whose origin is Dasemu/Synapse; `other` with a renamed origin.
|
||||
for (dir, origin) in [
|
||||
|
||||
Reference in new issue
Block a user