Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/commands/api/apiapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions cmd/commands/new/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}


Expand Down
1 change: 1 addition & 0 deletions test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test