mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 12:14:27 +02:00
correctly add the migration for size limit / fix test
This commit is contained in:
2 files changed
+2
-4
No files matched your search
@@ -400,7 +400,7 @@ func prepareMigrationTasks() []*migration {
|
|||||||
newMigration(323, "Add support for actions concurrency", v1_26.AddActionsConcurrency),
|
newMigration(323, "Add support for actions concurrency", v1_26.AddActionsConcurrency),
|
||||||
|
|
||||||
// to modify later
|
// 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
|
return preparedMigrations
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,8 +66,6 @@ func testGitGeneral(t *testing.T, u *url.URL) {
|
|||||||
|
|
||||||
dstPath := t.TempDir()
|
dstPath := t.TempDir()
|
||||||
|
|
||||||
dstForkedPath := t.TempDir()
|
|
||||||
|
|
||||||
t.Run("CreateRepoInDifferentUser", doAPICreateRepository(forkedUserCtx, false))
|
t.Run("CreateRepoInDifferentUser", doAPICreateRepository(forkedUserCtx, false))
|
||||||
t.Run("AddUserAsCollaborator", doAPIAddCollaborator(forkedUserCtx, httpContext.Username, perm.AccessModeRead))
|
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])
|
mediaTest(t, &httpContext, pushedFilesStandard[0], pushedFilesStandard[1], pushedFilesLFS[0], pushedFilesLFS[1])
|
||||||
|
|
||||||
t.Run("SizeLimit", func(t *testing.T) {
|
t.Run("SizeLimit", func(t *testing.T) {
|
||||||
|
dstForkedPath := t.TempDir()
|
||||||
setting.SaveGlobalRepositorySetting(true, 0)
|
setting.SaveGlobalRepositorySetting(true, 0)
|
||||||
t.Run("Under", func(t *testing.T) {
|
t.Run("Under", func(t *testing.T) {
|
||||||
defer tests.PrintCurrentTest(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("CreateAgitFlowPull", doCreateAgitFlowPull(dstPath, &httpContext, "test/head"))
|
|
||||||
t.Run("CreateProtectedBranch", doCreateProtectedBranch(&httpContext, dstPath))
|
t.Run("CreateProtectedBranch", doCreateProtectedBranch(&httpContext, dstPath))
|
||||||
t.Run("BranchProtectMerge", doBranchProtectPRMerge(&httpContext, dstPath))
|
t.Run("BranchProtectMerge", doBranchProtectPRMerge(&httpContext, dstPath))
|
||||||
t.Run("AutoMerge", doAutoPRMerge(&httpContext, dstPath))
|
t.Run("AutoMerge", doAutoPRMerge(&httpContext, dstPath))
|
||||||
|
|||||||
Reference in new issue
Block a user