From b99229eaf40fea12e83a052fb96589833b5ca45e Mon Sep 17 00:00:00 2001 From: Will Miao Date: Sun, 25 Oct 2026 13:01:23 +0800 Subject: [PATCH] test(config): compare normalized root path in symlink rescan log test --- tests/config/test_symlink_fingerprint.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/config/test_symlink_fingerprint.py b/tests/config/test_symlink_fingerprint.py index 7502b0fb..a311d4bb 100644 --- a/tests/config/test_symlink_fingerprint.py +++ b/tests/config/test_symlink_fingerprint.py @@ -149,4 +149,6 @@ def test_rescan_log_describes_invalidation_reason(monkeypatch: pytest.MonkeyPatc rescan_lines = [m for m in messages if m.startswith("Symlink configuration changed")] assert len(rescan_lines) == 1 assert "roots added:" in rescan_lines[0] - assert str(new_lora_dir) in rescan_lines[0] + # Fingerprint paths are normalized to forward slashes (Config._normalize_path), + # so compare against as_posix() rather than the OS-native separator. + assert new_lora_dir.as_posix() in rescan_lines[0]