From b8911fb45673fdc3fce587892c4d9215e7c15019 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 14 Apr 2022 21:58:21 +0800 Subject: Use a struct as test options (#19393) * Use a struct as test options * Fix name * Fix test --- services/webhook/main_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'services/webhook/main_test.go') diff --git a/services/webhook/main_test.go b/services/webhook/main_test.go index a87b74e89d..25b9df0af6 100644 --- a/services/webhook/main_test.go +++ b/services/webhook/main_test.go @@ -14,5 +14,7 @@ import ( ) func TestMain(m *testing.M) { - unittest.MainTest(m, filepath.Join("..", "..")) + unittest.MainTest(m, &unittest.TestOptions{ + GiteaRootPath: filepath.Join("..", ".."), + }) } -- cgit v1.2.3