aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/mailer_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/mailer_test.go')
-rw-r--r--modules/setting/mailer_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/setting/mailer_test.go b/modules/setting/mailer_test.go
index 0fc9b0e73f..4cfd6142be 100644
--- a/modules/setting/mailer_test.go
+++ b/modules/setting/mailer_test.go
@@ -10,7 +10,7 @@ import (
ini "gopkg.in/ini.v1"
)
-func TestParseMailerConfig(t *testing.T) {
+func Test_loadMailerFrom(t *testing.T) {
iniFile := ini.Empty()
kases := map[string]*Mailer{
"smtp.mydomain.com": {
@@ -34,7 +34,7 @@ func TestParseMailerConfig(t *testing.T) {
sec.NewKey("HOST", host)
// Check mailer setting
- parseMailerConfig(iniFile)
+ loadMailerFrom(iniFile)
assert.EqualValues(t, kase.SMTPAddr, MailService.SMTPAddr)
assert.EqualValues(t, kase.SMTPPort, MailService.SMTPPort)