aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_vfs/tests/vfs.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_vfs/tests/vfs.rs b/crates/ra_vfs/tests/vfs.rs
index c76e6ea26..b31e0f288 100644
--- a/crates/ra_vfs/tests/vfs.rs
+++ b/crates/ra_vfs/tests/vfs.rs
@@ -118,7 +118,9 @@ fn test_vfs_works() -> std::io::Result<()> {
118 118
119 fs::rename(&dir.path().join("a/sub1/sub2/new.rs"), &dir.path().join("a/sub1/sub2/new1.rs")) 119 fs::rename(&dir.path().join("a/sub1/sub2/new.rs"), &dir.path().join("a/sub1/sub2/new1.rs"))
120 .unwrap(); 120 .unwrap();
121 process_tasks(&mut vfs, 2); 121 // NOTE: Windows generates extra `Write` events when renaming?
122 // meaning we have extra tasks to process
123 process_tasks(&mut vfs, if cfg!(windows) { 4 } else { 2 });
122 assert_match!( 124 assert_match!(
123 vfs.commit_changes().as_slice(), 125 vfs.commit_changes().as_slice(),
124 [VfsChange::RemoveFile { path: removed_path, .. }, VfsChange::AddFile { text, path: added_path, .. }], 126 [VfsChange::RemoveFile { path: removed_path, .. }, VfsChange::AddFile { text, path: added_path, .. }],