mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:40:55 +00:00
fix issue1789: when testing, load config explicitly and forcibly
This commit is contained in:
parent
d90195061f
commit
549a39c478
1
beego.go
1
beego.go
@ -87,5 +87,6 @@ func TestBeegoInit(ap string) {
|
||||
os.Setenv("BEEGO_RUNMODE", "test")
|
||||
appConfigPath = filepath.Join(ap, "conf", "app.conf")
|
||||
os.Chdir(ap)
|
||||
LoadAppConfig(appConfigProvider, appConfigPath)
|
||||
initBeforeHTTPRun()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user