From 11a8d3a88e9c5e782107032d05963dbac1519ce0 Mon Sep 17 00:00:00 2001 From: Connor Johnstone Date: Wed, 1 Apr 2026 19:36:24 -0400 Subject: [PATCH] fleshed out subsonic more --- tests/integration.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/integration.rs b/tests/integration.rs index c6d7bea..d724697 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -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(), "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 { root: dir.path().to_owned(), dry_run: false, - concurrency: 2, + concurrency: 1, }; let stats = run_scan(db.conn(), &config).await.unwrap();