mirror of
https://github.com/beego/bee.git
synced 2024-11-21 13:40:53 +00:00
Fix panic on running tests for newly generated project
This commit is contained in:
parent
e3e401cadd
commit
19be52dc8c
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user