From ef8002693f0afc3b9a42a0ccf90b255a0e18e8c3 Mon Sep 17 00:00:00 2001 From: imbajin Date: Wed, 14 Oct 2026 05:29:28 +0800 Subject: [PATCH] fix(test): compare canonical snapshot paths Compare real directory identities in the sync fixture. Preserve snapshot marker and directory sync assertions. Handle macOS temporary directory aliases. --- .../backend/store/rocksdb/RocksDBSnapshotRestoreTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/backend/store/rocksdb/RocksDBSnapshotRestoreTest.java b/hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/backend/store/rocksdb/RocksDBSnapshotRestoreTest.java index 70f7a71daf..6cb8c9e540 100644 --- a/hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/backend/store/rocksdb/RocksDBSnapshotRestoreTest.java +++ b/hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/backend/store/rocksdb/RocksDBSnapshotRestoreTest.java @@ -1035,7 +1035,7 @@ private void checkMarkerDirectorySync(int failAt) throws Exception { @Override void forceDirectory(Path directory) throws IOException { int call = syncs.incrementAndGet(); - assertEquals(marker.getParent(), directory); + assertEquals(marker.getParent().toRealPath(), directory.toRealPath()); assertEquals(call < 3, Files.exists(marker)); // The retry source survives both sides of the marker removal boundary. assertTrue(snapshot.isDirectory());