Skip to content

Commit 632dfdc

Browse files
committed
Fix test
1 parent d7e0d49 commit 632dfdc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

routers/api/v1/repo/main_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515

1616
func TestMain(m *testing.M) {
1717
setting.LoadForTest()
18+
setting.NewQueueService()
1819
unittest.MainTest(m, &unittest.TestOptions{
1920
GiteaRootPath: filepath.Join("..", "..", "..", ".."),
2021
SetUp: webhook_service.Init,

services/webhook/main_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616

1717
func TestMain(m *testing.M) {
1818
setting.LoadForTest()
19+
setting.NewQueueService()
1920
unittest.MainTest(m, &unittest.TestOptions{
2021
GiteaRootPath: filepath.Join("..", ".."),
2122
SetUp: Init,

0 commit comments

Comments
 (0)