Skip to content

🎧 Your Personal Streaming Service

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

Deluan1e4c759d9318
diff --git a/scanner/scanner_test.go b/scanner/scanner_test.go
index 7c74e3f81..3ed5a4704 100644
--- a/scanner/scanner_test.go
+++ b/scanner/scanner_test.go
@@ -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() {