diff --git a/modules/test/utils_test.go b/modules/test/utils_test.go index e8b2db62f0..0469ce97f2 100644 --- a/modules/test/utils_test.go +++ b/modules/test/utils_test.go @@ -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", "") diff --git a/tests/integration/migration-test/migration_test.go b/tests/integration/migration-test/migration_test.go index 26d6cbfb5f..182e405095 100644 --- a/tests/integration/migration-test/migration_test.go +++ b/tests/integration/migration-test/migration_test.go @@ -4,7 +4,6 @@ package migrations import ( - "code.gitea.io/gitea/modules/test" "compress/gzip" "context" "database/sql" @@ -26,8 +25,10 @@ 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" "github.com/stretchr/testify/require" "xorm.io/xorm"