diff options
| author | jakka <jakkadoujin@gmail.com> | 2025-07-07 14:17:16 +0300 |
|---|---|---|
| committer | jakka <jakkadoujin@gmail.com> | 2025-07-07 14:17:16 +0300 |
| commit | 8606b681b9c5dc702b78df46f6c7b851bbbfa697 (patch) | |
| tree | c2fde586152da1d22eaf277349af7cf981d6b44b /src/files.rs | |
| parent | 9b459adeafffcecdcb19e60806272a466e02b184 (diff) | |
fixed tests with new samples location
Diffstat (limited to 'src/files.rs')
| -rw-r--r-- | src/files.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/files.rs b/src/files.rs index d3f68b4..d6d0c6b 100644 --- a/src/files.rs +++ b/src/files.rs @@ -224,13 +224,18 @@ mod tests { let dbname = "temp4.db"; let handler = Arc::new(AtomicBool::new(true)); let conn = Connection::new(Some(&dbname)).unwrap(); - let filenames = ["16bit.flac", "24bit.flac", "32bit.flac", "nonexisting.flac"]; - std::fs::copy("32bit.flac", "nonexisting.flac").unwrap(); + let filenames = [ + "./samples/16bit.flac", + "./samples/24bit.flac", + "./samples/32bit.flac", + "./samples/nonexisting.flac", + ]; + std::fs::copy("./samples/32bit.flac", "./samples/nonexisting.flac").unwrap(); for file in filenames { conn.insert_file(&file.to_string()).unwrap(); } - std::fs::remove_file("nonexisting.flac").unwrap(); + std::fs::remove_file("./samples/nonexisting.flac").unwrap(); clean_files(&conn, handler).unwrap(); let counter = conn.init_clean_files().unwrap().len(); |
