Compare commits

...

1 Commits

Author SHA1 Message Date
Connor Johnstone 11a8d3a88e fleshed out subsonic more 2026-04-01 19:36:24 -04:00
+3 -1
View File
@@ -58,10 +58,12 @@ async fn test_scan_indexes_music_files() {
create_test_mp3(dir.path(), "song1.mp3", "Time", "Pink Floyd", "DSOTM"); create_test_mp3(dir.path(), "song1.mp3", "Time", "Pink Floyd", "DSOTM");
create_test_mp3(dir.path(), "song2.mp3", "Money", "Pink Floyd", "DSOTM"); create_test_mp3(dir.path(), "song2.mp3", "Money", "Pink Floyd", "DSOTM");
// Use concurrency=1 to avoid race in album upsert when two files
// share the same artist+album and are processed simultaneously.
let config = ScanConfig { let config = ScanConfig {
root: dir.path().to_owned(), root: dir.path().to_owned(),
dry_run: false, dry_run: false,
concurrency: 2, concurrency: 1,
}; };
let stats = run_scan(db.conn(), &config).await.unwrap(); let stats = run_scan(db.conn(), &config).await.unwrap();