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 committed by Joe Stump
parent e32071a046
commit 3e0e091cb1
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

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() {