diff --git a/crates/ruff_server/tests/notebook.rs b/crates/ruff_server/tests/notebook.rs index d639655fd0..6bca95c023 100644 --- a/crates/ruff_server/tests/notebook.rs +++ b/crates/ruff_server/tests/notebook.rs @@ -22,7 +22,7 @@ struct NotebookChange { #[test] fn super_resolution_overview() { let file_path = - std::path::absolute(PathBuf::from_str(SUPER_RESOLUTION_OVERVIEW_PATH).unwrap()).unwrap(); + std::fs::canonicalize(PathBuf::from_str(SUPER_RESOLUTION_OVERVIEW_PATH).unwrap()).unwrap(); let file_url = lsp_types::Url::from_file_path(&file_path).unwrap(); let notebook = create_notebook(&file_path).unwrap();