aboutsummaryrefslogtreecommitdiffstats
path: root/models/webhook/main_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/webhook/main_test.go')
-rw-r--r--models/webhook/main_test.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/models/webhook/main_test.go b/models/webhook/main_test.go
index 89c947b061..39ef2da6a2 100644
--- a/models/webhook/main_test.go
+++ b/models/webhook/main_test.go
@@ -12,5 +12,11 @@ import (
)
func TestMain(m *testing.M) {
- unittest.MainTest(m, filepath.Join("..", ".."), "webhook.yml", "hook_task.yml")
+ unittest.MainTest(m, &unittest.TestOptions{
+ GiteaRootPath: filepath.Join("..", ".."),
+ FixtureFiles: []string{
+ "webhook.yml",
+ "hook_task.yml",
+ },
+ })
}