Skip to content

Commit 32ccde6

Browse files
author
Threepwood-7
committed
RUST-CI-003 canonicalize long path test expectation
1 parent 59bd581 commit 32ccde6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

crates/emulebb-core/tests/long_path_shared_dir.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ async fn long_path_shared_directory_files_are_scanned_ingested_and_shared() {
110110
})
111111
.await
112112
.expect("configuring the deep (>260) shared root must succeed via the verbatim form");
113-
let expected_display_root = normal_path_display(&configured_root);
113+
let expected_display_root = fs::canonicalize(long_path(Path::new(&configured_root)))
114+
.map(|path| normal_path_display(&path.display().to_string()))
115+
.expect("configured shared root should canonicalize");
114116
let directories = core.shared_directories().await;
115117
assert_eq!(directories.roots[0].path, expected_display_root);
116118
assert!(

0 commit comments

Comments
 (0)