1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 10:18:38 +00:00

Use a struct as test options (#19393)

* Use a struct as test options

* Fix name

* Fix test
This commit is contained in:
Lunny Xiao
2022-04-14 21:58:21 +08:00
committed by GitHub
parent 4dabc212c7
commit b8911fb456
40 changed files with 210 additions and 100 deletions

View File

@@ -37,5 +37,7 @@ func TestFixturesAreConsistent(t *testing.T) {
}
func TestMain(m *testing.M) {
unittest.MainTest(m, "..")
unittest.MainTest(m, &unittest.TestOptions{
GiteaRootPath: "..",
})
}