mirror of
https://github.com/beego/bee.git
synced 2024-11-22 10:10:53 +00:00
update the default test file tests/default_test.go
This commit is contained in:
parent
e3e401cadd
commit
0e342ff4c1
@ -511,9 +511,9 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
_, file, _, _ := runtime.Caller(1)
|
||||
apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, ".." + string(filepath.Separator))))
|
||||
beego.TestBeegoInit(apppath)
|
||||
appPath, _ := filepath.Abs("..")
|
||||
beego.TestBeegoInit(appPath)
|
||||
beego.AppPath = appPath
|
||||
}
|
||||
|
||||
// TestGet is a sample to run an endpoint test
|
||||
|
@ -101,9 +101,9 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
_, file, _, _ := runtime.Caller(1)
|
||||
apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, ".." + string(filepath.Separator))))
|
||||
beego.TestBeegoInit(apppath)
|
||||
appPath, _ := filepath.Abs("..")
|
||||
beego.TestBeegoInit(appPath)
|
||||
beego.AppPath = appPath
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user