From 8e7e7cb09f104604488068b8d0dc39ae572b4572 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 21 Dec 2024 19:18:59 +0800 Subject: [PATCH] fix name --- modules/test/utils_test.go | 2 +- tests/integration/migration-test/migration_test.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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"