From ed1938dd9a5915fa329a89dd984a9ab93a3caf25 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Thu, 13 Mar 2025 15:16:30 -0400 Subject: [PATCH] worktree: Disable flaky tests (test_write_file, test_git_status_postprocessing) (#26710) Comment out flaky tests: - `worktree_tests::test_write_file` - `worktree_tests::test_git_status_postprocessing` Job links: - windows fail: https://github.com/zed-industries/zed/actions/runs/13841766606/job/38730766252 - macos fail: https://github.com/zed-industries/zed/actions/runs/13841766606/job/38730764118 That [commit](https://github.com/zed-industries/zed/commit/85384fb9c67614795a82f5b0a09895875beb16d0) was a non-op script change, but in the [prior commit](https://github.com/zed-industries/zed/commit/00359271d11b6ba865fe81f04f675bf588a17335) [windows/macos pass](https://github.com/zed-industries/zed/actions/runs/13841135221). Similar experience with `worktree_tests::test_write_file` on both macOS windows too. - See also: https://github.com/zed-industries/zed/pull/26684 Release Notes: - N/A --- crates/worktree/src/worktree_tests.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/worktree/src/worktree_tests.rs b/crates/worktree/src/worktree_tests.rs index e4f62f5192560fa692c79ed04bb29ea39adc6365..5814a5ad61a0992f546575dc70785f124587769a 100644 --- a/crates/worktree/src/worktree_tests.rs +++ b/crates/worktree/src/worktree_tests.rs @@ -845,7 +845,9 @@ async fn test_update_gitignore(cx: &mut TestAppContext) { }); } -#[gpui::test] +// TODO: Fix flaky test. +// #[gpui::test] +#[allow(unused)] async fn test_write_file(cx: &mut TestAppContext) { init_test(cx); cx.executor().allow_parking(); @@ -2740,7 +2742,9 @@ async fn test_git_repository_status(cx: &mut TestAppContext) { }); } -#[gpui::test] +// TODO: Fix flaky test. +// #[gpui::test] +#[allow(unused)] async fn test_git_status_postprocessing(cx: &mut TestAppContext) { init_test(cx); cx.executor().allow_parking();