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:13:31 UTC
(opendal-yinyang) branch xuanwo/managed-sync-acceptance updated: test: select retained artifacts by kind
This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a commit to branch xuanwo/managed-sync-acceptance
in repository https://gitbox.apache.org/repos/asf/opendal-yinyang.git
The following commit(s) were added to refs/heads/xuanwo/managed-sync-acceptance by this push:
new 39cd741 test: select retained artifacts by kind
39cd741 is described below
commit 39cd7413e4ecfea75891ab39647fa62d38fdcb25
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Tue Oct 27 05:13:25 2026 +0800
test: select retained artifacts by kind
Co-authored-by: Chojan Shang <ps...@apache.org>
---
tests/linux_sync/acceptance.rs | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/tests/linux_sync/acceptance.rs b/tests/linux_sync/acceptance.rs
index 827c2dd..e4ffdaf 100644
--- a/tests/linux_sync/acceptance.rs
+++ b/tests/linux_sync/acceptance.rs
@@ -820,7 +820,10 @@ fn managed_sync_retained_artifacts_export_post_install_writes_both_authorities()
let replaced = status
.artifacts
.iter()
- .find(|artifact| artifact.origin == "watched.txt")
+ .find(|artifact| {
+ artifact.origin == "watched.txt"
+ && artifact.kind == crate::linux_sync::harness::ArtifactKind::ReplacedFile
+ })
.unwrap_or_else(|| panic!("missing replaced-file artifact: {status:#?}"));
assert_eq!(
replaced.kind,
@@ -836,7 +839,11 @@ fn managed_sync_retained_artifacts_export_post_install_writes_both_authorities()
let directory = status
.artifacts
.iter()
- .find(|artifact| artifact.origin == "gone")
+ .find(|artifact| {
+ artifact.origin == "gone"
+ && artifact.kind
+ == crate::linux_sync::harness::ArtifactKind::QuarantinedDirectory
+ })
.unwrap_or_else(|| panic!("missing quarantined-directory artifact: {status:#?}"));
assert_eq!(
directory.kind,