Skip to content

Commit a5cdded

Browse files
committed
Canonicalize path in create_delete_empty test
1 parent 92808bc commit a5cdded

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rust/src/project.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,7 @@ mod test {
11341134

11351135
#[test]
11361136
fn create_delete_empty() {
1137+
use std::fs::canonicalize;
11371138
crate::headless::init();
11381139

11391140
let project_name = "create_delete_empty_project";
@@ -1145,7 +1146,10 @@ mod test {
11451146

11461147
// check project data
11471148
let project_path_received = project.path();
1148-
assert_eq!(&project_path, project_path_received.as_str());
1149+
assert_eq!(
1150+
canonicalize(&project_path).unwrap(),
1151+
canonicalize(project_path_received.to_string()).unwrap()
1152+
);
11491153
let project_name_received = project.name();
11501154
assert_eq!(project_name, project_name_received.as_str());
11511155

0 commit comments

Comments
 (0)