Skip to content

Commit 94cbce4

Browse files
committed
Fix block
1 parent 95043a3 commit 94cbce4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

services/webhook/main_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ import (
99
"testing"
1010

1111
"code.gitea.io/gitea/models/unittest"
12+
"code.gitea.io/gitea/modules/setting"
1213

1314
_ "code.gitea.io/gitea/models"
1415
)
1516

1617
func TestMain(m *testing.M) {
1718
unittest.MainTest(m, &unittest.TestOptions{
1819
GiteaRootPath: filepath.Join("..", ".."),
19-
SetUp: Init,
20+
SetUp: func() error {
21+
setting.NewQueueService()
22+
return Init()
23+
},
2024
})
2125
}

0 commit comments

Comments
 (0)