mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 12:50:55 +00:00
ut fix
This commit is contained in:
parent
0c32255d14
commit
203ab3eba8
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user