Fixed issues in test scripts.

This commit is contained in:
truecode112
2023-05-17 02:20:59 +03:00
parent 80f8977e59
commit 8ac833ae62
3 changed files with 5 additions and 3 deletions
+1
View File
@@ -10,6 +10,7 @@ import (
"strings"
"code.gitea.io/gitea/modules/log"
"github.com/dustin/go-humanize"
)
+3 -3
View File
@@ -15,10 +15,10 @@
<div class="inline field">
<label>{{.locale.Tr "repo.repo_size"}}</label>
<span {{if .Err_RepoSize}}class="ui text red"{{end}}>{{FileSize .Repository.Size}}
{{if .ActualSizeLimit }}
{{if .EnableSizeLimit }}
{{if .ActualSizeLimit}}
{{if .EnableSizeLimit}}
/{{FileSize .ActualSizeLimit}}
{{end }}
{{end}}
{{end}}
</span>
</div>
+1
View File
@@ -82,6 +82,7 @@ func testGit(t *testing.T, u *url.URL) {
mediaTest(t, &httpContext, little, big, littleLFS, bigLFS)
t.Run("SizeLimit", func(t *testing.T) {
setting.SaveGlobalRepositorySetting(true, 0)
t.Run("Under", func(t *testing.T) {
defer tests.PrintCurrentTest(t)()
doCommitAndPush(t, littleSize, dstPath, "data-file-")