test(lsp): compare mock server results against canonical paths (#553)

Edits and references report canonical paths, while the mock server fixture used the temporary directory as given. On macOS and Windows those differ.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-10-31 14:46:48 +08:00
1 джерело 8f85f35ebe
коміт 999eb86408
1 file changed
+2 -1
+2 -1
Переглянути файл
@@ -235,7 +235,8 @@ fn harness_configured(
adjust: impl Fn(&mut LanguageServerConfig),
) -> Harness {
let dir = tempfile::tempdir().unwrap();
let root = dir.path().to_path_buf();
// Edits and references report canonical paths.
let root = dunce::canonicalize(dir.path()).unwrap();
let lang = LanguageConfig {
id: LanguageId::new(lang_id),
name: "Mock".into(),