aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/activitypub/main_test.go5
-rw-r--r--modules/indexer/code/indexer_test.go5
-rw-r--r--modules/indexer/issues/indexer_test.go5
-rw-r--r--modules/indexer/stats/indexer_test.go5
-rw-r--r--modules/repository/main_test.go5
-rw-r--r--modules/system/appstate_test.go4
6 files changed, 6 insertions, 23 deletions
diff --git a/modules/activitypub/main_test.go b/modules/activitypub/main_test.go
index dcd57bb59e..4591f1fa55 100644
--- a/modules/activitypub/main_test.go
+++ b/modules/activitypub/main_test.go
@@ -4,7 +4,6 @@
package activitypub
import (
- "path/filepath"
"testing"
"code.gitea.io/gitea/models/unittest"
@@ -15,7 +14,5 @@ import (
)
func TestMain(m *testing.M) {
- unittest.MainTest(m, &unittest.TestOptions{
- GiteaRootPath: filepath.Join("..", ".."),
- })
+ unittest.MainTest(m)
}
diff --git a/modules/indexer/code/indexer_test.go b/modules/indexer/code/indexer_test.go
index 2a650646bd..5b2a97d3d5 100644
--- a/modules/indexer/code/indexer_test.go
+++ b/modules/indexer/code/indexer_test.go
@@ -6,7 +6,6 @@ package code
import (
"context"
"os"
- "path/filepath"
"testing"
"code.gitea.io/gitea/models/unittest"
@@ -23,9 +22,7 @@ import (
)
func TestMain(m *testing.M) {
- unittest.MainTest(m, &unittest.TestOptions{
- GiteaRootPath: filepath.Join("..", "..", ".."),
- })
+ unittest.MainTest(m)
}
func testIndexer(name string, t *testing.T, indexer internal.Indexer) {
diff --git a/modules/indexer/issues/indexer_test.go b/modules/indexer/issues/indexer_test.go
index 7241f6313c..0ec23164c2 100644
--- a/modules/indexer/issues/indexer_test.go
+++ b/modules/indexer/issues/indexer_test.go
@@ -5,7 +5,6 @@ package issues
import (
"context"
- "path/filepath"
"testing"
"code.gitea.io/gitea/models/db"
@@ -22,9 +21,7 @@ import (
)
func TestMain(m *testing.M) {
- unittest.MainTest(m, &unittest.TestOptions{
- GiteaRootPath: filepath.Join("..", "..", ".."),
- })
+ unittest.MainTest(m)
}
func TestDBSearchIssues(t *testing.T) {
diff --git a/modules/indexer/stats/indexer_test.go b/modules/indexer/stats/indexer_test.go
index c031515434..6f935a20de 100644
--- a/modules/indexer/stats/indexer_test.go
+++ b/modules/indexer/stats/indexer_test.go
@@ -5,7 +5,6 @@ package stats
import (
"context"
- "path/filepath"
"testing"
"time"
@@ -23,9 +22,7 @@ import (
)
func TestMain(m *testing.M) {
- unittest.MainTest(m, &unittest.TestOptions{
- GiteaRootPath: filepath.Join("..", "..", ".."),
- })
+ unittest.MainTest(m)
}
func TestRepoStatsIndex(t *testing.T) {
diff --git a/modules/repository/main_test.go b/modules/repository/main_test.go
index abaae69866..f81dfcdafb 100644
--- a/modules/repository/main_test.go
+++ b/modules/repository/main_test.go
@@ -4,7 +4,6 @@
package repository
import (
- "path/filepath"
"testing"
"code.gitea.io/gitea/models/unittest"
@@ -13,7 +12,5 @@ import (
)
func TestMain(m *testing.M) {
- unittest.MainTest(m, &unittest.TestOptions{
- GiteaRootPath: filepath.Join("..", ".."),
- })
+ unittest.MainTest(m)
}
diff --git a/modules/system/appstate_test.go b/modules/system/appstate_test.go
index 65a6e50003..232362cf0c 100644
--- a/modules/system/appstate_test.go
+++ b/modules/system/appstate_test.go
@@ -4,7 +4,6 @@
package system
import (
- "path/filepath"
"testing"
"code.gitea.io/gitea/models/unittest"
@@ -14,8 +13,7 @@ import (
func TestMain(m *testing.M) {
unittest.MainTest(m, &unittest.TestOptions{
- GiteaRootPath: filepath.Join("..", ".."),
- FixtureFiles: []string{""}, // load nothing
+ FixtureFiles: []string{""}, // load nothing
})
}