1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 16:44:26 +00:00
This commit is contained in:
wxiaoguang 2024-12-21 19:18:59 +08:00
parent f57323a807
commit 0d6c5bd9a6
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert"
)
func TestDetectGiteaRoot(t *testing.T) {
func TestSetupGiteaRoot(t *testing.T) {
t.Setenv("GITEA_ROOT", "test")
assert.Equal(t, "test", SetupGiteaRoot())
t.Setenv("GITEA_ROOT", "")

View File

@ -4,7 +4,6 @@
package migrations
import (
"code.gitea.io/gitea/modules/test"
"compress/gzip"
"context"
"database/sql"
@ -26,6 +25,7 @@ import (
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/test"
"code.gitea.io/gitea/modules/testlogger"
"code.gitea.io/gitea/modules/util"
"github.com/stretchr/testify/assert"