Compare commits

...

2 Commits

Author SHA1 Message Date
Piotr Osiewicz
0232d7a73f Moar parking 2025-10-17 17:22:28 +02:00
Piotr Osiewicz
f97d201699 project: Fix flaky test_ignored_dirs_events 2025-10-17 15:11:02 +02:00

View File

@@ -8878,6 +8878,7 @@ async fn test_ignored_dirs_events(cx: &mut gpui::TestAppContext) {
git_commit("Initial commit", &repo);
let project = Project::test(Arc::new(RealFs::new(None, cx.executor())), [root_path], cx).await;
cx.run_until_parked();
let repository_updates = Arc::new(Mutex::new(Vec::new()));
let project_events = Arc::new(Mutex::new(Vec::new()));
project.update(cx, |project, cx| {
@@ -8904,6 +8905,7 @@ async fn test_ignored_dirs_events(cx: &mut gpui::TestAppContext) {
let tree = project.read_with(cx, |project, cx| project.worktrees(cx).next().unwrap());
tree.flush_fs_events(cx).await;
cx.run_until_parked();
tree.update(cx, |tree, cx| {
tree.load_file(rel_path("project/target/debug/important_text.txt"), cx)
})
@@ -8927,6 +8929,7 @@ async fn test_ignored_dirs_events(cx: &mut gpui::TestAppContext) {
);
});
cx.run_until_parked();
assert_eq!(
repository_updates.lock().drain(..).collect::<Vec<_>>(),
vec![