-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix some tests : make coverage -> test #2492
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test still fails: https://drone.gitea.io/go-gitea/gitea/499/1/test-mysql
modules/mailer/mailer.go
Outdated
@@ -42,7 +42,7 @@ func NewMessageFrom(to []string, from, subject, body string) *Message { | |||
|
|||
plainBody, err := html2text.FromString(body) | |||
if err != nil || setting.MailService.SendAsPlainText { | |||
if strings.Contains(base.TruncateString(body, 100), "<html>"){ | |||
if strings.Contains(base.TruncateString(body, 100), "<html>") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert a885c7f since theire is already a PR for this: #2490
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch
@JonasFranzDEV Yes, I haven't look in detail for the part still failling. I have mostly look for the what happen aroung the GPG part since I have worked on it. ^^ |
a885c7f
to
1a2b10e
Compare
8aa5434
to
d882aed
Compare
But why so many files changed? |
d882aed
to
9292bd7
Compare
@lunny I just moved |
LGTM |
LGTM |
thx @lafriks |
make coverage use mysql database in paralell than test-mysql. That introduce test fails for test like GPG that insert key at runtime.
And some quick fix of missed error during PRs.