mirror of
https://github.com/go-gitea/gitea.git
synced 2026-06-15 06:05:51 +02:00
Fixed unclosed logger test
This commit is contained in:
parent
8494f19f29
commit
0afa267c18
@ -82,11 +82,11 @@ func testGit(t *testing.T, u *url.URL) {
|
||||
|
||||
t.Run("SizeLimit", func(t *testing.T) {
|
||||
t.Run("Under", func(t *testing.T) {
|
||||
tests.PrintCurrentTest(t)
|
||||
defer tests.PrintCurrentTest(t)()
|
||||
doCommitAndPush(t, littleSize, dstPath, "data-file-")
|
||||
})
|
||||
t.Run("Over", func(t *testing.T) {
|
||||
tests.PrintCurrentTest(t)
|
||||
defer tests.PrintCurrentTest(t)()
|
||||
u.Path = forkedUserCtx.GitPath()
|
||||
u.User = url.UserPassword(forkedUserCtx.Username, userPassword)
|
||||
t.Run("Clone", doGitClone(dstForkedPath, u))
|
||||
@ -94,12 +94,12 @@ func testGit(t *testing.T, u *url.URL) {
|
||||
doCommitAndPushWithExpectedError(t, bigSize, dstForkedPath, "data-file-")
|
||||
})
|
||||
t.Run("UnderAfterResize", func(t *testing.T) {
|
||||
tests.PrintCurrentTest(t)
|
||||
defer tests.PrintCurrentTest(t)()
|
||||
t.Run("APISetRepoSizeLimit", doAPISetRepoSizeLimit(forkedUserCtx, forkedUserCtx.Username, forkedUserCtx.Reponame, bigSize*10))
|
||||
doCommitAndPush(t, littleSize, dstPath, "data-file-")
|
||||
})
|
||||
t.Run("Deletion", func(t *testing.T) {
|
||||
tests.PrintCurrentTest(t)
|
||||
defer tests.PrintCurrentTest(t)()
|
||||
// TODO doDeleteCommitAndPush(t, littleSize, dstPath, "data-file-")
|
||||
})
|
||||
// TODO delete branch
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user