worktree: Disable flaky test_file_status test (#26729)

See also:
- https://github.com/zed-industries/zed/pull/26684
- https://github.com/zed-industries/zed/pull/26710

Release Notes:

- N/A
This commit is contained in:
Cole Miller 2025-03-13 17:09:16 -04:00 committed by GitHub
parent 22f1429f97
commit dffa725c7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2428,12 +2428,13 @@ async fn test_git_repository_for_path(cx: &mut TestAppContext) {
}); });
} }
// NOTE: // NOTE: This test always fails on Windows, because on Windows, unlike on Unix,
// This test always fails on Windows, because on Windows, unlike on Unix, you can't rename // you can't rename a directory which some program has already open. This is a
// a directory which some program has already open. // limitation of the Windows. See:
// This is a limitation of the Windows. // https://stackoverflow.com/questions/41365318/access-is-denied-when-renaming-folder
// See: https://stackoverflow.com/questions/41365318/access-is-denied-when-renaming-folder // TODO: Fix flaky test.
#[gpui::test] // #[gpui::test]
#[allow(unused)]
#[cfg_attr(target_os = "windows", ignore)] #[cfg_attr(target_os = "windows", ignore)]
async fn test_file_status(cx: &mut TestAppContext) { async fn test_file_status(cx: &mut TestAppContext) {
init_test(cx); init_test(cx);
@ -3540,6 +3541,8 @@ fn git_cherry_pick(commit: &git2::Commit<'_>, repo: &git2::Repository) {
repo.cherrypick(commit, None).expect("Failed to cherrypick"); repo.cherrypick(commit, None).expect("Failed to cherrypick");
} }
// TODO: Remove allow(unused) once flaky tests are reinstated
#[allow(unused)]
#[track_caller] #[track_caller]
fn git_stash(repo: &mut git2::Repository) { fn git_stash(repo: &mut git2::Repository) {
use git2::Signature; use git2::Signature;
@ -3549,6 +3552,8 @@ fn git_stash(repo: &mut git2::Repository) {
.expect("Failed to stash"); .expect("Failed to stash");
} }
// TODO: Remove allow(unused) once flaky tests are reinstated
#[allow(unused)]
#[track_caller] #[track_caller]
fn git_reset(offset: usize, repo: &git2::Repository) { fn git_reset(offset: usize, repo: &git2::Repository) {
let head = repo.head().expect("Couldn't get repo head"); let head = repo.head().expect("Couldn't get repo head");