From 7e5ce976681e99be6b26d428935ba1106d530efa Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 12 Jan 2018 08:02:11 -0600 Subject: Remove global cfg vars (#8099) * remove global cfg vars * enterprise update --- utils/mail_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'utils/mail_test.go') 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" -- cgit v1.2.3-1-g7c22