Skip to content

Commit 2ca8018

Browse files
committed
Update functional_tests.rs
1 parent 3f5907f commit 2ca8018

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/functional_tests.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,20 +100,20 @@ mod tests {
100100
fn test_pack_archive() {
101101
// pack test data
102102
let data_path = PathBuf::from("tests").join("data");
103-
let dst_path = PathBuf::from("tests").join("out2").join("data.archive");
103+
let dst_path = PathBuf::from("tests").join("out2");
104+
let dst_file = dst_path.join("data.archive");
104105

105106
// delete folder if exists
106107
if dst_path.exists() {
107108
assert!(fs::remove_dir_all(&dst_path).is_ok());
108109
}
109110
create_dir_all(&dst_path).expect("Could not create folder");
110111

111-
let result = archive_file::create_from_directory_path(&data_path, &dst_path, None);
112+
let result = archive_file::create_from_directory_path(&data_path, &dst_file, None);
112113
assert!(result.is_ok());
113114

114115
// checks
115-
let created_path = dst_path.join("data.archive");
116-
assert!(created_path.exists());
116+
assert!(dst_file.exists());
117117

118118
// TODO binary equality
119119
// let existing_path = PathBuf::from("tests").join("test1.archive");

0 commit comments

Comments
 (0)