Commit 203ab3eb authored by JessonChan's avatar JessonChan

ut fix

parent 0c32255d
......@@ -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()
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment