1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 10:00:50 +00:00

Fix panic on running tests for newly generated project

This commit is contained in:
Tavee Khunbida 2019-01-08 00:34:51 +07:00
parent e3e401cadd
commit 19be52dc8c
2 changed files with 2 additions and 2 deletions

View File

@ -511,7 +511,7 @@ import (
)
func init() {
_, file, _, _ := runtime.Caller(1)
_, file, _, _ := runtime.Caller(0)
apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, ".." + string(filepath.Separator))))
beego.TestBeegoInit(apppath)
}

View File

@ -101,7 +101,7 @@ import (
)
func init() {
_, file, _, _ := runtime.Caller(1)
_, file, _, _ := runtime.Caller(0)
apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, ".." + string(filepath.Separator))))
beego.TestBeegoInit(apppath)
}