diff --git a/config_test.go b/config_test.go index 0fa85f54..a365199a 100644 --- a/config_test.go +++ b/config_test.go @@ -115,11 +115,11 @@ func TestAssignConfig_03(t *testing.T) { ac.Set("RunMode", "online") ac.Set("StaticDir", "download:down download2:down2") ac.Set("StaticExtensionsToGzip", ".css,.js,.html,.jpg,.png") - ac.Set("LogOutputs", `"file": ""`) assignConfig(ac) - //t.Logf("%#v",BConfig) + t.Logf("%#v",BConfig) + if BConfig.AppName != "test_app" { t.FailNow() } @@ -127,7 +127,7 @@ func TestAssignConfig_03(t *testing.T) { if BConfig.RunMode != "online" { t.FailNow() } - if BConfig.WebConfig.StaticDir["download"] != "down" { + if BConfig.WebConfig.StaticDir["/download"] != "down" { t.FailNow() } if BConfig.WebConfig.StaticDir["download2"] != "down2" { @@ -136,7 +136,4 @@ func TestAssignConfig_03(t *testing.T) { if len(BConfig.WebConfig.StaticExtensionsToGzip) != 5 { t.FailNow() } - if _, ok := BConfig.Log.Outputs["file"]; !ok { - t.FailNow() - } }