This commit is contained in:
wxiaoguang
2026-04-25 18:01:34 +08:00
parent a973269a37
commit 11f910c80c
4 changed files with 5 additions and 11 deletions

View File

@@ -8,16 +8,11 @@ import (
"testing"
"code.gitea.io/gitea/modules/setting"
"github.com/stretchr/testify/assert"
)
func TestManager(t *testing.T) {
oldAppDataPath := setting.AppDataPath
setting.AppDataPath = t.TempDir()
defer func() {
setting.AppDataPath = oldAppDataPath
}()
newQueueFromConfig := func(name, cfg string) (*WorkerPoolQueue[int], error) {
cfgProvider, err := setting.NewConfigProviderFromData(cfg)