Skip to content

Commit 3769400

Browse files
committed
Fix test error
1 parent d0b6958 commit 3769400

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

clients/filesystem-fuse/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ fmt:
2727
cargo-sort: install-cargo-sort
2828
cargo sort -w
2929

30+
fix-toml: install-taplo-cli
31+
taplo fmt
32+
3033
check-fmt:
3134
cargo fmt --all -- --check
3235

@@ -48,9 +51,6 @@ cargo-machete: install-cargo-machete
4851
install-taplo-cli:
4952
cargo install taplo-cli@0.9.0
5053

51-
fix-toml: install-taplo-cli
52-
taplo fmt
53-
5454
check-toml: install-taplo-cli
5555
taplo check
5656

clients/filesystem-fuse/src/filesystem.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ mod tests {
691691
assert_eq!(file_stat.size, 10);
692692
assert_eq!(file_stat.kind, FileType::RegularFile);
693693

694-
//teset new dir with path
694+
//test new dir with path
695695
let file_stat = FileStat::new_dir_with_path("a/b");
696696
assert_eq!(file_stat.name, "b");
697697
assert_eq!(file_stat.path, "a/b");

clients/filesystem-fuse/src/fuse_api_handle.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ mod test {
496496
assert_eq!(file_attr.mtime, Timestamp { sec: 12, nsec: 5 });
497497
assert_eq!(file_attr.ctime, Timestamp { sec: 15, nsec: 7 });
498498
assert_eq!(file_attr.kind, FileType::RegularFile);
499-
assert_eq!(file_attr.perm, 0);
499+
assert_eq!(file_attr.perm, context.default_file_perm);
500500
assert_eq!(file_attr.nlink, 0);
501501
assert_eq!(file_attr.uid, 1);
502502
assert_eq!(file_attr.gid, 2);

0 commit comments

Comments
 (0)