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 10:01:50 UTC
(opendal-yinyang) branch xuanwo/linux-fuse-writable updated: test(volume): remove single-element validation loop
This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a commit to branch xuanwo/linux-fuse-writable
in repository https://gitbox.apache.org/repos/asf/opendal-yinyang.git
The following commit(s) were added to refs/heads/xuanwo/linux-fuse-writable by this push:
new 7810b16 test(volume): remove single-element validation loop
7810b16 is described below
commit 7810b16482ebc764e0552825781468dc84b1c6be
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Mon Oct 26 18:01:43 2026 +0800
test(volume): remove single-element validation loop
Co-authored-by: Chojan Shang <ps...@apache.org>
---
tests/volume.rs | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/tests/volume.rs b/tests/volume.rs
index 328fd15..80bc13d 100644
--- a/tests/volume.rs
+++ b/tests/volume.rs
@@ -132,13 +132,12 @@ async fn fuse_frontend_admits_read_only_and_writable_managed_mounts() {
} else {
assert!(ro.validate(&backend.operator()).is_err());
}
- for invalid in [VolumeConfig {
+ let invalid = VolumeConfig {
service_address: Some("0.0.0.0:7447".parse().unwrap()),
publication: Publication::Service,
..ro.clone()
- }] {
- assert!(invalid.validate(&backend.operator()).is_err());
- }
+ };
+ assert!(invalid.validate(&backend.operator()).is_err());
}
#[tokio::test]
async fn read_only_volume_enforces_policy_on_new_and_recovered_handles() {