fix #1213
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) { | ... | ... |
-
Please register or sign in to post a comment