Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix worktree test flakiness (#29613)

Conrad Irwind732a7d36121
diff --git a/crates/project/src/project_tests.rs b/crates/project/src/project_tests.rs
index f923c152296..394d89c04e3 100644
--- a/crates/project/src/project_tests.rs
+++ b/crates/project/src/project_tests.rs
@@ -8296,7 +8296,10 @@ async fn test_git_worktrees_and_submodules(cx: &mut gpui::TestAppContext) {
".git": {
"worktrees": {
"some-worktree": {
- "commondir": "../..\n"
+ "commondir": "../..\n",
+ // For is_git_dir
+ "HEAD": "",
+ "config": ""
}
},
"modules": {