Skip to content

The agent that grows with you

test(backup): the offline-import lock assertion uses the runtime's path identity

Teknium62559b64b1d4
diff --git a/tests/hermes_cli/test_backup.py b/tests/hermes_cli/test_backup.py
index 7d7bdf91116..d2230f085c5 100644
--- a/tests/hermes_cli/test_backup.py
+++ b/tests/hermes_cli/test_backup.py
@@ -801,7 +801,8 @@ class TestImport:
# inode which must remain after release, or concurrent openers can split ownership.
assert not (hermes_home / "cron.pid").exists()
lock = json.loads((hermes_home / "gateway.lock").read_text())
- assert lock["hermes_home"] == str(hermes_home.resolve())
+ from gateway.runtime_ownership import canonical_home # the identity the lock stores (normcase)
+ assert lock["hermes_home"] == str(canonical_home(hermes_home))