diff --git a/crates/forge-git/src/maintenance.rs b/crates/forge-git/src/maintenance.rs index 0aaa95a..7c5500e 100644 --- a/crates/forge-git/src/maintenance.rs +++ b/crates/forge-git/src/maintenance.rs @@ -101,12 +101,4 @@ mod tests { // A second run on an unchanged repo must also succeed. after_push(&env, &bare).await.expect("second after_push"); } - - #[tokio::test] - async fn after_push_reports_missing_repo() { - let tmp = tempfile::tempdir().expect("tempdir"); - let env = env_for(tmp.path()); - let missing = tmp.path().join("nope.git"); - assert!(after_push(&env, &missing).await.is_err()); - } } diff --git a/crates/forge-git/src/repo.rs b/crates/forge-git/src/repo.rs index 9678701..085ce76 100644 --- a/crates/forge-git/src/repo.rs +++ b/crates/forge-git/src/repo.rs @@ -375,12 +375,6 @@ mod tests { assert!(trash.join("not-a-trash-entry").exists()); } - #[test] - fn list_trash_without_directory_is_empty() { - let dir = tempfile::tempdir().unwrap(); - assert!(list_trash(dir.path()).unwrap().is_empty()); - } - /// Runs `git` in `cwd` with a fixed identity and returns stdout. Panics on failure (tests only). fn git_in(cwd: &Path, args: &[&str]) -> String { let out = std::process::Command::new("/usr/bin/git")