test: fix flaky scanner tests by setting maximum open connections to 1

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan 2025-05-23 15:39:44 -04:00
parent e06fbd26b7
commit 1e4c759d93

View File

@ -54,6 +54,7 @@ var _ = Describe("Scanner", Ordered, func() {
conf.Server.DbPath = filepath.Join(tmpDir, "test-scanner.db?_journal_mode=WAL")
log.Warn("Using DB at " + conf.Server.DbPath)
//conf.Server.DbPath = ":memory:"
db.Db().SetMaxOpenConns(1)
})
BeforeEach(func() {