diff --git a/services/forgejo/main_test.go b/services/forgejo/main_test.go
index 70b6e7a15f..e88b7d0263 100644
--- a/services/forgejo/main_test.go
+++ b/services/forgejo/main_test.go
@@ -3,7 +3,6 @@
 package forgejo
 
 import (
-	"path/filepath"
 	"testing"
 
 	"code.gitea.io/gitea/models/unittest"
@@ -14,7 +13,5 @@ import (
 )
 
 func TestMain(m *testing.M) {
-	unittest.MainTest(m, &unittest.TestOptions{
-		GiteaRootPath: filepath.Join("..", ".."),
-	})
+	unittest.MainTest(m)
 }