Refactoring cfg refs and load / save functions (#7749)
* refactoring cfg refs and load / save functions * improve error output
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
b446d0aa0a
Коммит
ce2b2be5de
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func TestMailConnection(t *testing.T) {
|
||||
LoadConfig("config.json")
|
||||
LoadGlobalConfig("config.json")
|
||||
|
||||
if conn, err := connectToSMTPServer(Cfg); err != nil {
|
||||
t.Log(err)
|
||||
@@ -32,7 +32,7 @@ func TestMailConnection(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSendMail(t *testing.T) {
|
||||
LoadConfig("config.json")
|
||||
LoadGlobalConfig("config.json")
|
||||
T = GetUserTranslations("en")
|
||||
|
||||
var emailTo string = "test@example.com"
|
||||
|
||||
Ссылка в новой задаче
Block a user