Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 11a8d3a88e |
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user