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 21:22:43 UTC
(opendal-yinyang) branch xuanwo/managed-sync-reconciliation updated: test: use contains_key for the remote map presence check
This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a commit to branch xuanwo/managed-sync-reconciliation
in repository https://gitbox.apache.org/repos/asf/opendal-yinyang.git
The following commit(s) were added to refs/heads/xuanwo/managed-sync-reconciliation by this push:
new f22e320 test: use contains_key for the remote map presence check
f22e320 is described below
commit f22e320a9c8dc883c154cabc9381c63e51159a9c
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Tue Oct 27 05:22:37 2026 +0800
test: use contains_key for the remote map presence check
Co-authored-by: Chojan Shang <ps...@apache.org>
---
tests/directory_resolution.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/directory_resolution.rs b/tests/directory_resolution.rs
index dd68dfe..23989a8 100644
--- a/tests/directory_resolution.rs
+++ b/tests/directory_resolution.rs
@@ -256,7 +256,7 @@ async fn local_deletion_vs_remote_edit_resolves_both_ways() {
"keep-local must keep the local deletion"
);
assert!(
- remote_tree(&authority).await.get("file.txt").is_none(),
+ !remote_tree(&authority).await.contains_key("file.txt"),
"keep-local must publish the deletion to the remote side"
);
} else {