mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-01 22:35:06 +02:00
Fixed issues in test scripts.
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"code.gitea.io/gitea/modules/log"
|
||||
|
||||
"github.com/dustin/go-humanize"
|
||||
)
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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-")
|
||||
|
||||
Reference in New Issue
Block a user