Skip to content

Commit

Permalink
Add testers
Browse files Browse the repository at this point in the history
  • Loading branch information
diqiu50 committed Dec 24, 2024
1 parent c043b95 commit d4da504
Show file tree
Hide file tree
Showing 3 changed files with 275 additions and 169 deletions.
9 changes: 4 additions & 5 deletions clients/filesystem-fuse/src/default_raw_filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,7 @@ impl<T: PathFileSystem> RawFileSystem for DefaultRawFileSystem<T> {
self.fs.remove_file(&path).await?;

// remove the file from file entry manager
self.remove_file_entry_locked(&parent_file_entry.path.join(name))
.await;
self.remove_file_entry_locked(&path).await;
Ok(())
}

Expand All @@ -268,8 +267,7 @@ impl<T: PathFileSystem> RawFileSystem for DefaultRawFileSystem<T> {
self.fs.remove_dir(&path).await?;

// remove the dir from file entry manager
self.remove_file_entry_locked(&parent_file_entry.path.join(name))
.await;
self.remove_file_entry_locked(&path).await;
Ok(())
}

Expand Down Expand Up @@ -409,6 +407,7 @@ mod tests {
let memory_fs = MemoryFileSystem::new().await;
let raw_fs = DefaultRawFileSystem::new(memory_fs);
let _ = raw_fs.init().await;
TestRawFileSystem::test_raw_file_system(&raw_fs).await;
let mut tester = TestRawFileSystem::new(raw_fs);
tester.test_raw_file_system().await;
}
}
Loading

0 comments on commit d4da504

Please sign in to comment.