ci: bump plugin compilation timeout for regressions (#4690)
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/navidrome/navidrome/conf"
|
"github.com/navidrome/navidrome/conf"
|
||||||
"github.com/navidrome/navidrome/core/agents"
|
"github.com/navidrome/navidrome/core/agents"
|
||||||
@@ -22,8 +23,11 @@ var _ = Describe("Plugin Manager", func() {
|
|||||||
// but, as this is an integration test, we can't use configtest.SetupConfig() as it causes
|
// but, as this is an integration test, we can't use configtest.SetupConfig() as it causes
|
||||||
// data races.
|
// data races.
|
||||||
originalPluginsFolder := conf.Server.Plugins.Folder
|
originalPluginsFolder := conf.Server.Plugins.Folder
|
||||||
|
originalTimeout := conf.Server.DevPluginCompilationTimeout
|
||||||
|
conf.Server.DevPluginCompilationTimeout = 2 * time.Minute
|
||||||
DeferCleanup(func() {
|
DeferCleanup(func() {
|
||||||
conf.Server.Plugins.Folder = originalPluginsFolder
|
conf.Server.Plugins.Folder = originalPluginsFolder
|
||||||
|
conf.Server.DevPluginCompilationTimeout = originalTimeout
|
||||||
})
|
})
|
||||||
conf.Server.Plugins.Enabled = true
|
conf.Server.Plugins.Enabled = true
|
||||||
conf.Server.Plugins.Folder = testDataDir
|
conf.Server.Plugins.Folder = testDataDir
|
||||||
|
|||||||
Reference in New Issue
Block a user