64d4f651 by astaxie

fix #1213

1 parent 9f05db84
Showing 1 changed file with 1 additions and 1 deletions
...@@ -336,7 +336,7 @@ func initBeforeHttpRun() { ...@@ -336,7 +336,7 @@ func initBeforeHttpRun() {
336 // this function is for test package init 336 // this function is for test package init
337 func TestBeegoInit(apppath string) { 337 func TestBeegoInit(apppath string) {
338 AppPath = apppath 338 AppPath = apppath
339 RunMode = "test" 339 os.Setenv("BEEGO_RUNMODE", "test")
340 AppConfigPath = filepath.Join(AppPath, "conf", "app.conf") 340 AppConfigPath = filepath.Join(AppPath, "conf", "app.conf")
341 err := ParseConfig() 341 err := ParseConfig()
342 if err != nil && !os.IsNotExist(err) { 342 if err != nil && !os.IsNotExist(err) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!