mirror of
https://github.com/go-gitea/gitea
synced 2025-12-07 13:28:25 +00:00
Fix test
This commit is contained in:
@@ -115,7 +115,9 @@ func getQueueSettings(name string) queueSettings {
|
||||
return q
|
||||
}
|
||||
|
||||
func newQueueService() {
|
||||
// NewQueueService sets up the default settings for Queues
|
||||
// This is exported for tests to be able to use the queue
|
||||
func NewQueueService() {
|
||||
sec := Cfg.Section("queue")
|
||||
Queue.DataDir = sec.Key("DATADIR").MustString("queues/")
|
||||
if !path.IsAbs(Queue.DataDir) {
|
||||
|
||||
@@ -1090,5 +1090,5 @@ func NewServices() {
|
||||
newMigrationsService()
|
||||
newIndexerService()
|
||||
newTaskService()
|
||||
newQueueService()
|
||||
NewQueueService()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user