From 27ad6a57ce10f831bfc4d6611bb98de58bc7f68f Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 20 Mar 2023 13:10:52 -0700 Subject: [PATCH] Tweak logging in worktree randomized test --- crates/project/src/worktree.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/project/src/worktree.rs b/crates/project/src/worktree.rs index 7250de9a68..06bd49fbaf 100644 --- a/crates/project/src/worktree.rs +++ b/crates/project/src/worktree.rs @@ -3697,13 +3697,13 @@ mod tests { if rng.gen() { log::info!( - "Creating dir {:?}", + "creating dir {:?}", new_path.strip_prefix(root_path).unwrap() ); fs.create_dir(&new_path).await.unwrap(); } else { log::info!( - "Creating file {:?}", + "creating file {:?}", new_path.strip_prefix(root_path).unwrap() ); fs.create_file(&new_path, Default::default()).await.unwrap(); @@ -3745,7 +3745,7 @@ mod tests { .unwrap(); } log::info!( - "Creating {:?} with contents:\n{}", + "creating gitignore {:?} with contents:\n{}", ignore_path.strip_prefix(&root_path).unwrap(), ignore_contents ); @@ -3789,7 +3789,7 @@ mod tests { }; log::info!( - "Renaming {:?} to {}{:?}", + "renaming {:?} to {}{:?}", old_path.strip_prefix(&root_path).unwrap(), if overwrite_existing_dir { "overwrite " @@ -3810,13 +3810,13 @@ mod tests { .unwrap(); } else if fs.is_file(&old_path).await { log::info!( - "Deleting file {:?}", + "deleting file {:?}", old_path.strip_prefix(&root_path).unwrap() ); fs.remove_file(old_path, Default::default()).await.unwrap(); } else { log::info!( - "Deleting dir {:?}", + "deleting dir {:?}", old_path.strip_prefix(&root_path).unwrap() ); fs.remove_dir(