Fixed config test to match new default logger

This commit is contained in:
Jordan Wright 2020-07-17 22:23:44 -05:00
parent 1c5ad85de1
commit cf7d058f1d

View file

@ -6,6 +6,8 @@ import (
"os"
"reflect"
"testing"
log "github.com/gophish/gophish/logger"
)
var validConfig = []byte(`{
@ -63,6 +65,7 @@ func TestLoadConfig(t *testing.T) {
expectedConfig.MigrationsPath = expectedConfig.MigrationsPath + expectedConfig.DBName
expectedConfig.TestFlag = false
expectedConfig.AdminConf.CSRFKey = ""
expectedConfig.Logging = &log.Config{}
if !reflect.DeepEqual(expectedConfig, conf) {
t.Fatalf("invalid config received. expected %#v got %#v", expectedConfig, conf)
}