mirror of
https://github.com/navidrome/navidrome.git
synced 2026-12-02 18:14:31 +00:00
test: replace shared repository fakes with a real per-suite database (#6519)
This commit is contained in:
1 parent
71553644ed
commit
f78929da2e
195 files changed
+7059
-10969
No files matched your search
@@ -19,7 +19,6 @@ import (
|
||||
"github.com/navidrome/navidrome/conf"
|
||||
"github.com/navidrome/navidrome/model"
|
||||
"github.com/navidrome/navidrome/plugins/host"
|
||||
"github.com/navidrome/navidrome/tests"
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
)
|
||||
@@ -847,16 +846,12 @@ var _ = Describe("TaskQueueService Integration", Ordered, func() {
|
||||
c.DataFolder = conf.NewDir(tmpDir)
|
||||
})
|
||||
|
||||
// Setup mock DataStore with pre-enabled plugin
|
||||
mockPluginRepo := tests.CreateMockPluginRepo()
|
||||
mockPluginRepo.Permitted = true
|
||||
mockPluginRepo.SetData(model.Plugins{{
|
||||
dataStore := newTestDataStore(model.Plugin{
|
||||
ID: "test-taskqueue",
|
||||
Path: destPath,
|
||||
SHA256: hashHex,
|
||||
Enabled: true,
|
||||
}})
|
||||
dataStore := &tests.MockDataStore{MockedPlugin: mockPluginRepo}
|
||||
})
|
||||
|
||||
// Create and start manager
|
||||
manager = &Manager{
|
||||
|
||||
Reference in new issue
Block a user