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/user/user_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'services/user') diff --git a/services/user/user_test.go b/services/user/user_test.go index 7835530394..cfa02b0033 100644 --- a/services/user/user_test.go +++ b/services/user/user_test.go @@ -20,7 +20,9 @@ import ( ) func TestMain(m *testing.M) { - unittest.MainTest(m, filepath.Join("..", "..")) + unittest.MainTest(m, &unittest.TestOptions{ + GiteaRootPath: filepath.Join("..", ".."), + }) } func TestDeleteUser(t *testing.T) { -- cgit v1.2.3