ci: bump plugin compilation timeout for regressions (#4690)
This commit is contained in:
parent
489d5c7760
commit
32e1313fc6
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue