Skip to content

Commit d7e0d49

Browse files
committed
Fix test
1 parent 94cbce4 commit d7e0d49

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

services/webhook/main_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ import (
1515
)
1616

1717
func TestMain(m *testing.M) {
18+
setting.LoadForTest()
1819
unittest.MainTest(m, &unittest.TestOptions{
1920
GiteaRootPath: filepath.Join("..", ".."),
20-
SetUp: func() error {
21-
setting.NewQueueService()
22-
return Init()
23-
},
21+
SetUp: Init,
2422
})
2523
}

0 commit comments

Comments
 (0)