summaryrefslogtreecommitdiffstats
path: root/services/org
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-04-14 15:58:21 +0200
committerGitHub <noreply@github.com>2022-04-14 15:58:21 +0200
commitb8911fb45673fdc3fce587892c4d9215e7c15019 (patch)
treedf72d047049f53cdbe9cb5d16a03b814f29e9ca6 /services/org
parentDisallow selecting the text of buttons (#19330) (diff)
downloadforgejo-b8911fb45673fdc3fce587892c4d9215e7c15019.tar.xz
forgejo-b8911fb45673fdc3fce587892c4d9215e7c15019.zip
Use a struct as test options (#19393)
* Use a struct as test options * Fix name * Fix test
Diffstat (limited to 'services/org')
-rw-r--r--services/org/org_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/org/org_test.go b/services/org/org_test.go
index b30bfddbb4..7f90d85807 100644
--- a/services/org/org_test.go
+++ b/services/org/org_test.go
@@ -17,7 +17,9 @@ import (
)
func TestMain(m *testing.M) {
- unittest.MainTest(m, filepath.Join("..", ".."))
+ unittest.MainTest(m, &unittest.TestOptions{
+ GiteaRootPath: filepath.Join("..", ".."),
+ })
}
func TestDeleteOrganization(t *testing.T) {