From cf7d058f1d789a90134aa39a6ab9f67ae14fde55 Mon Sep 17 00:00:00 2001 From: Jordan Wright Date: Fri, 17 Jul 2020 22:23:44 -0500 Subject: [PATCH] Fixed config test to match new default logger --- config/config_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/config_test.go b/config/config_test.go index 00f8f402..5a30b885 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -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) }