fix tests

This commit is contained in:
Cole Miller 2025-07-31 12:46:33 -04:00
parent ca458cc529
commit a9a23251b7
6 changed files with 21 additions and 14 deletions

View file

@ -29,7 +29,7 @@ use lsp::{
WillRenameFiles, notification::DidRenameFiles,
};
use parking_lot::Mutex;
use paths::{config_dir, tasks_file};
use paths::{config_dir, global_gitignore_path, tasks_file};
use postage::stream::Stream as _;
use pretty_assertions::{assert_eq, assert_matches};
use rand::{Rng as _, rngs::StdRng};
@ -1179,7 +1179,9 @@ async fn test_reporting_fs_changes_to_language_servers(cx: &mut gpui::TestAppCon
assert_eq!(fs.read_dir_call_count() - prev_read_dir_count, 5);
let mut new_watched_paths = fs.watched_paths();
new_watched_paths.retain(|path| !path.starts_with(config_dir()));
new_watched_paths.retain(|path| {
!path.starts_with(config_dir()) && !path.starts_with(global_gitignore_path().unwrap())
});
assert_eq!(
&new_watched_paths,
&[