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 17:24:19 UTC

(opendal-yinyang) branch xuanwo/managed-sync-acceptance updated: test: assert managed sync state binding

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 4eee396  test: assert managed sync state binding
4eee396 is described below

commit 4eee396eb446fc3d644a0f34f48b479e29e5f6df
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Tue Oct 27 01:24:12 2026 +0800

    test: assert managed sync state binding
    
    Co-authored-by: Chojan Shang <ps...@apache.org>
---
 tests/linux_sync/acceptance.rs | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/tests/linux_sync/acceptance.rs b/tests/linux_sync/acceptance.rs
index 9ccef14..96cead8 100644
--- a/tests/linux_sync/acceptance.rs
+++ b/tests/linux_sync/acceptance.rs
@@ -59,6 +59,21 @@ fn assert_tree(root: &Path, expected: &Tree, context: &str) {
 fn assert_in_sync(fixture: &Fixture, paths: &crate::linux_sync::harness::SyncPaths) -> SyncStatus {
     let status = fixture.sync_status(paths);
     assert_eq!(status.binding.state, BindingState::Bound, "{status:#?}");
+    assert_eq!(
+        status.binding.root.as_deref(),
+        Some(
+            fs::canonicalize(&paths.directory)
+                .unwrap()
+                .to_str()
+                .unwrap()
+        ),
+        "{status:#?}"
+    );
+    assert_eq!(
+        status.binding.state_directory,
+        fs::canonicalize(&paths.state).unwrap().to_str().unwrap(),
+        "{status:#?}"
+    );
     assert_eq!(status.binding.same_filesystem, Some(true), "{status:#?}");
     assert_eq!(status.remote.availability, RemoteAvailability::Available);
     assert_eq!(status.local.scan, LocalScanState::Clean, "{status:#?}");