mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-04 08:17:24 -05:00
Remove extraneous logging (#15020)
Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
parent
119d2cb6e4
commit
71aca93dec
@ -518,7 +518,16 @@ func doEnsureDiffNoChange(ctx APITestContext, pr api.PullRequest, diffStr string
|
|||||||
return func(t *testing.T) {
|
return func(t *testing.T) {
|
||||||
req := NewRequest(t, "GET", fmt.Sprintf("/%s/%s/pulls/%d.diff", url.PathEscape(ctx.Username), url.PathEscape(ctx.Reponame), pr.Index))
|
req := NewRequest(t, "GET", fmt.Sprintf("/%s/%s/pulls/%d.diff", url.PathEscape(ctx.Username), url.PathEscape(ctx.Reponame), pr.Index))
|
||||||
resp := ctx.Session.MakeRequest(t, req, http.StatusOK)
|
resp := ctx.Session.MakeRequest(t, req, http.StatusOK)
|
||||||
assert.Equal(t, diffStr, resp.Body.String())
|
expectedMaxLen := len(diffStr)
|
||||||
|
if expectedMaxLen > 800 {
|
||||||
|
expectedMaxLen = 800
|
||||||
|
}
|
||||||
|
actual := resp.Body.String()
|
||||||
|
actualMaxLen := len(actual)
|
||||||
|
if actualMaxLen > 800 {
|
||||||
|
actualMaxLen = 800
|
||||||
|
}
|
||||||
|
assert.Equal(t, diffStr, actual, "Unexpected change in the diff string: expected: %s but was actually: %s", diffStr[:expectedMaxLen], actual[:actualMaxLen])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"code.gitea.io/gitea/modules/log"
|
|
||||||
"code.gitea.io/gitea/modules/markup"
|
"code.gitea.io/gitea/modules/markup"
|
||||||
"code.gitea.io/gitea/modules/markup/common"
|
"code.gitea.io/gitea/modules/markup/common"
|
||||||
"code.gitea.io/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
@ -139,10 +138,6 @@ func (g *ASTTransformer) Transform(node *ast.Document, reader text.Reader, pc pa
|
|||||||
|
|
||||||
// But most importantly ensure the next sibling is still on the old image too
|
// But most importantly ensure the next sibling is still on the old image too
|
||||||
v.SetNextSibling(next)
|
v.SetNextSibling(next)
|
||||||
|
|
||||||
} else {
|
|
||||||
log.Debug("ast.Image: %s has parent: %v", link, parent)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
case *ast.Link:
|
case *ast.Link:
|
||||||
// Links need their href to munged to be a real value
|
// Links need their href to munged to be a real value
|
||||||
|
Loading…
Reference in New Issue
Block a user