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 --- routers/web/admin/main_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'routers/web/admin') diff --git a/routers/web/admin/main_test.go b/routers/web/admin/main_test.go index e41d8fea75..4e6ad4d743 100644 --- a/routers/web/admin/main_test.go +++ b/routers/web/admin/main_test.go @@ -12,5 +12,7 @@ import ( ) func TestMain(m *testing.M) { - unittest.MainTest(m, filepath.Join("..", "..", "..")) + unittest.MainTest(m, &unittest.TestOptions{ + GiteaRootPath: filepath.Join("..", "..", ".."), + }) } -- cgit v1.2.3