File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -100,20 +100,20 @@ mod tests {
100
100
fn test_pack_archive ( ) {
101
101
// pack test data
102
102
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" ) ;
104
105
105
106
// delete folder if exists
106
107
if dst_path. exists ( ) {
107
108
assert ! ( fs:: remove_dir_all( & dst_path) . is_ok( ) ) ;
108
109
}
109
110
create_dir_all ( & dst_path) . expect ( "Could not create folder" ) ;
110
111
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 ) ;
112
113
assert ! ( result. is_ok( ) ) ;
113
114
114
115
// checks
115
- let created_path = dst_path. join ( "data.archive" ) ;
116
- assert ! ( created_path. exists( ) ) ;
116
+ assert ! ( dst_file. exists( ) ) ;
117
117
118
118
// TODO binary equality
119
119
// let existing_path = PathBuf::from("tests").join("test1.archive");
You can’t perform that action at this time.
0 commit comments