You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2026/10/26 07:59:09 UTC
(opendal-yinyang) branch xuanwo/linux-fuse-acceptance updated: test: fix cached readdir inner-entry assertion
This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a commit to branch xuanwo/linux-fuse-acceptance
in repository https://gitbox.apache.org/repos/asf/opendal-yinyang.git
The following commit(s) were added to refs/heads/xuanwo/linux-fuse-acceptance by this push:
new bc3a36b test: fix cached readdir inner-entry assertion
bc3a36b is described below
commit bc3a36be6d63ee7ab6aad714482096ced12bb94e
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Mon Oct 26 15:59:02 2026 +0800
test: fix cached readdir inner-entry assertion
Avoid a map(function-pointer) type mismatch on the &&str iteration and assert the nested directory contents with set membership.
Co-authored-by: Chojan Shang <ps...@apache.org>
---
tests/linux_fuse/acceptance.rs | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/tests/linux_fuse/acceptance.rs b/tests/linux_fuse/acceptance.rs
index ebb63a4..ef253e1 100644
--- a/tests/linux_fuse/acceptance.rs
+++ b/tests/linux_fuse/acceptance.rs
@@ -115,10 +115,8 @@ fn fuse_read_only_cached_readdir_and_nested_inodes_both_publications() {
"cached nested readdir changed"
);
let inner_first = names(&inner);
- assert_eq!(
- inner_first,
- ["hello.txt"].into_iter().map(str::to_owned).collect()
- );
+ assert_eq!(inner_first.len(), 1);
+ assert!(inner_first.contains("hello.txt"));
assert_eq!(names(&inner), inner_first, "cached inner readdir changed");
let bulk = root.join("bulk");