mirror of
https://github.com/gophish/gophish
synced 2024-11-14 16:27:23 +00:00
Fixed config test to match new default logger
This commit is contained in:
parent
1c5ad85de1
commit
cf7d058f1d
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
log "github.com/gophish/gophish/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
var validConfig = []byte(`{
|
var validConfig = []byte(`{
|
||||||
|
@ -63,6 +65,7 @@ func TestLoadConfig(t *testing.T) {
|
||||||
expectedConfig.MigrationsPath = expectedConfig.MigrationsPath + expectedConfig.DBName
|
expectedConfig.MigrationsPath = expectedConfig.MigrationsPath + expectedConfig.DBName
|
||||||
expectedConfig.TestFlag = false
|
expectedConfig.TestFlag = false
|
||||||
expectedConfig.AdminConf.CSRFKey = ""
|
expectedConfig.AdminConf.CSRFKey = ""
|
||||||
|
expectedConfig.Logging = &log.Config{}
|
||||||
if !reflect.DeepEqual(expectedConfig, conf) {
|
if !reflect.DeepEqual(expectedConfig, conf) {
|
||||||
t.Fatalf("invalid config received. expected %#v got %#v", expectedConfig, conf)
|
t.Fatalf("invalid config received. expected %#v got %#v", expectedConfig, conf)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue