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 --- modules/notification/action/action_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/notification') diff --git a/modules/notification/action/action_test.go b/modules/notification/action/action_test.go index 3664b82104..2898c8ec3d 100644 --- a/modules/notification/action/action_test.go +++ b/modules/notification/action/action_test.go @@ -18,7 +18,9 @@ import ( ) func TestMain(m *testing.M) { - unittest.MainTest(m, filepath.Join("..", "..", "..")) + unittest.MainTest(m, &unittest.TestOptions{ + GiteaRootPath: filepath.Join("..", "..", ".."), + }) } func TestRenameRepoAction(t *testing.T) { -- cgit v1.2.3