summaryrefslogtreecommitdiffstats
path: root/utils/mail_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/mail_test.go')
-rw-r--r--utils/mail_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/mail_test.go b/utils/mail_test.go
index a4444eb2e..574f71f46 100644
--- a/utils/mail_test.go
+++ b/utils/mail_test.go
@@ -6,10 +6,13 @@ package utils
import (
"strings"
"testing"
+
+ "github.com/stretchr/testify/require"
)
func TestMailConnection(t *testing.T) {
- cfg := LoadGlobalConfig("config.json")
+ cfg, _, err := LoadConfig("config.json")
+ require.Nil(t, err)
if conn, err := connectToSMTPServer(cfg); err != nil {
t.Log(err)
@@ -32,7 +35,8 @@ func TestMailConnection(t *testing.T) {
}
func TestSendMailUsingConfig(t *testing.T) {
- cfg := LoadGlobalConfig("config.json")
+ cfg, _, err := LoadConfig("config.json")
+ require.Nil(t, err)
T = GetUserTranslations("en")
var emailTo string = "test@example.com"