From 758f4f3376f5069fb85ebba449d238a70b53e8d3 Mon Sep 17 00:00:00 2001 From: DmitryFrolovTri <23313323+DmitryFrolovTri@users.noreply.github.com> Date: Tue, 9 Dec 2025 13:33:54 +0000 Subject: [PATCH] correctly add the migration for size limit / fix test --- models/migrations/migrations.go | 2 +- tests/integration/git_general_test.go | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index f7e5f2c53ab..c77fe40f038 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -400,7 +400,7 @@ func prepareMigrationTasks() []*migration { newMigration(323, "Add support for actions concurrency", v1_26.AddActionsConcurrency), // to modify later - newMigration(999, "Add size limit on repository", v1_26.AddSizeLimitOnRepo), + newMigration(324, "Add size limit on repository", v1_26.AddSizeLimitOnRepo), } return preparedMigrations } diff --git a/tests/integration/git_general_test.go b/tests/integration/git_general_test.go index 05bdced071f..ba8e26a3409 100644 --- a/tests/integration/git_general_test.go +++ b/tests/integration/git_general_test.go @@ -66,8 +66,6 @@ func testGitGeneral(t *testing.T, u *url.URL) { dstPath := t.TempDir() - dstForkedPath := t.TempDir() - t.Run("CreateRepoInDifferentUser", doAPICreateRepository(forkedUserCtx, false)) t.Run("AddUserAsCollaborator", doAPIAddCollaborator(forkedUserCtx, httpContext.Username, perm.AccessModeRead)) @@ -88,6 +86,7 @@ func testGitGeneral(t *testing.T, u *url.URL) { mediaTest(t, &httpContext, pushedFilesStandard[0], pushedFilesStandard[1], pushedFilesLFS[0], pushedFilesLFS[1]) t.Run("SizeLimit", func(t *testing.T) { + dstForkedPath := t.TempDir() setting.SaveGlobalRepositorySetting(true, 0) t.Run("Under", func(t *testing.T) { defer tests.PrintCurrentTest(t)() @@ -120,7 +119,6 @@ func testGitGeneral(t *testing.T, u *url.URL) { }) }) t.Run("CreateAgitFlowPull", doCreateAgitFlowPull(dstPath, &httpContext, "test/head")) - t.Run("CreateAgitFlowPull", doCreateAgitFlowPull(dstPath, &httpContext, "test/head")) t.Run("CreateProtectedBranch", doCreateProtectedBranch(&httpContext, dstPath)) t.Run("BranchProtectMerge", doBranchProtectPRMerge(&httpContext, dstPath)) t.Run("AutoMerge", doAutoPRMerge(&httpContext, dstPath))