Browse Source

Fixed config test to match new default logger

pull/1909/head
Jordan Wright 11 months ago
parent
commit
cf7d058f1d
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      config/config_test.go

+ 3
- 0
config/config_test.go 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)
}

Loading…
Cancel
Save