mirror of https://github.com/beego/bee.git
Merge 0e342ff4c1
into e3e401cadd
This commit is contained in:
commit
7ec44ec13d
|
@ -511,9 +511,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
_, file, _, _ := runtime.Caller(1)
|
appPath, _ := filepath.Abs("..")
|
||||||
apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, ".." + string(filepath.Separator))))
|
beego.TestBeegoInit(appPath)
|
||||||
beego.TestBeegoInit(apppath)
|
beego.AppPath = appPath
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestGet is a sample to run an endpoint test
|
// TestGet is a sample to run an endpoint test
|
||||||
|
|
|
@ -101,9 +101,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
_, file, _, _ := runtime.Caller(1)
|
appPath, _ := filepath.Abs("..")
|
||||||
apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, ".." + string(filepath.Separator))))
|
beego.TestBeegoInit(appPath)
|
||||||
beego.TestBeegoInit(apppath)
|
beego.AppPath = appPath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue