worktree: Add more context to log_err calls (#38239)

Release Notes:

- N/A
This commit is contained in:
Lukas Wirth
2025-09-16 07:31:28 +00:00
committed by GitHub
parent d986077592
commit 1c09985fb3
2 changed files with 66 additions and 43 deletions
+3 -7
View File
@@ -1258,8 +1258,7 @@ async fn test_create_directory_during_initial_scan(cx: &mut TestAppContext) {
move |update| {
snapshot
.lock()
.apply_remote_update(update, &settings.file_scan_inclusions)
.unwrap();
.apply_remote_update(update, &settings.file_scan_inclusions);
async { true }
}
});
@@ -1489,8 +1488,7 @@ async fn test_random_worktree_operations_during_initial_scan(
for update in updates.lock().iter() {
if update.scan_id >= updated_snapshot.scan_id() as u64 {
updated_snapshot
.apply_remote_update(update.clone(), &settings.file_scan_inclusions)
.unwrap();
.apply_remote_update(update.clone(), &settings.file_scan_inclusions);
}
}
@@ -1625,9 +1623,7 @@ async fn test_random_worktree_changes(cx: &mut TestAppContext, mut rng: StdRng)
for (i, mut prev_snapshot) in snapshots.into_iter().enumerate().rev() {
for update in updates.lock().iter() {
if update.scan_id >= prev_snapshot.scan_id() as u64 {
prev_snapshot
.apply_remote_update(update.clone(), &settings.file_scan_inclusions)
.unwrap();
prev_snapshot.apply_remote_update(update.clone(), &settings.file_scan_inclusions);
}
}